WO2019242757A1 - Imaging shake compensation method and device, and storage medium - Google Patents
Imaging shake compensation method and device, and storage medium Download PDFInfo
- Publication number
- WO2019242757A1 WO2019242757A1 PCT/CN2019/092346 CN2019092346W WO2019242757A1 WO 2019242757 A1 WO2019242757 A1 WO 2019242757A1 CN 2019092346 W CN2019092346 W CN 2019092346W WO 2019242757 A1 WO2019242757 A1 WO 2019242757A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- image
- mobile terminal
- shake
- amount
- original image
- Prior art date
Links
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/60—Control of cameras or camera modules
-
- 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
-
- 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
Definitions
- the present disclosure relates to, but is not limited to, the field of image processing technology.
- the camera function of mobile terminals is more and more concerned by consumers, and the quality of the camera function has become an important indicator for measuring the performance of mobile terminals.
- the sharpness of the captured image can be used to evaluate the quality of the camera function of the mobile terminal.
- the image sharpness mainly depends on the performance of the imaging module itself and the optimization ability of the later image processing.
- many scenes such as scenes with low light, scenes in motion, scenes that capture moving objects, etc.
- it is prone to imaging problems such as screen shake and smear.
- optical image stabilization technology is usually used.
- Optical image stabilization needs to be implemented by adding hardware components, and the cost is relatively high.
- a method for image shake compensation including: detecting whether a shake amount of a mobile terminal at a shutter response time is greater than a preset threshold; and in response to the shake amount being greater than the preset threshold, detecting a The maximum jitter direction of the mobile terminal at the shutter response time; according to the maximum jitter direction of the mobile terminal, selecting a corresponding interval output method for the pixel array of the image sensor to obtain the first frame of the original image at the shutter response time And the second frame of the original image; and performing image synthesis on the first frame of the original image and the second frame of the original image to generate a target image
- an apparatus for image shake compensation which includes a memory and a processor.
- the memory stores a computer program.
- the processor executes Disclosed method for image shake compensation.
- a computer-readable storage medium on which one or more computer programs are stored.
- the one or more Processors execute a method of image shake compensation according to the present disclosure.
- FIG. 1 is a flowchart of a method for image shake compensation according to an embodiment of the present disclosure.
- FIG. 2 is a structural block diagram of a mobile terminal according to an embodiment of the present disclosure.
- FIG. 3 is a flowchart of step S110 of the method for image shake compensation shown in FIG. 1.
- FIG. 4 shows a flowchart of step S120 of the method for image shake compensation shown in FIG. 1.
- FIG. 5 shows a flowchart of step S130 of the method for image shake compensation shown in FIG. 1.
- FIG. 6 shows a flowchart of step S140 of the method for image shake compensation shown in FIG. 1.
- FIG. 7 is a structural block diagram of an apparatus for image shake compensation according to an embodiment of the present disclosure.
- FIG. 1 is a flowchart of a method for image shake compensation according to an embodiment of the present disclosure.
- a method for image shake compensation includes steps S110 to S140:
- step S110 it is detected whether the amount of shake of the mobile terminal at the shutter response time is greater than a preset threshold.
- step S120 in response to the amount of shake being greater than a preset threshold, detecting a maximum shake direction of the mobile terminal at the shutter response time.
- step S130 according to the maximum jitter direction of the mobile terminal, a corresponding interval output method is selected for the pixel array of the image sensor to obtain the first frame original image and the second frame original image at the shutter response time.
- step S140 image synthesis is performed on the first frame original image and the second frame original image to generate a target image.
- FIG. 2 is a structural block diagram of a mobile terminal according to an embodiment of the present disclosure.
- the mobile terminal 100 includes a camera 110, an image sensor 120, a gyroscope 130, an image processor 140, and a control unit 150.
- the camera 110 is used to capture images during shooting.
- the image sensor 120 may be a Complementary Metal Oxide Semiconductor (CMOS) sensor, or a Charge Coupled Device (CCD) sensor.
- CMOS Complementary Metal Oxide Semiconductor
- CCD Charge Coupled Device
- the image sensor 120 may include a plurality of rows and a plurality of columns of pixels arranged in an array.
- the gyroscope 130 is used to detect changes in the azimuth and angle of the mobile terminal 100 in real time.
- the gyroscope 130 can detect in the directions of the three axes of X, Y, and Z, and record the value at time T and the value at time T + 1 in each axis direction.
- Time T is the previous time when the shutter is clicked to take a picture (ie, the shutter response time)
- time T + 1 is the time when the shutter responds.
- the image processor 140 may process and synthesize multiple frames of images, and convert the processed and synthesized images in the original data format to obtain images in the target data format, and process the images in the target data format again (for example, automatic white balance). , Auto exposure, auto focus, etc.) to get the target image.
- the control unit 150 may control the interval output mode of the pixel array of the image sensor 120.
- the gyroscope 130 measures the horizontal change amount (or horizontal shake amount) and vertical change amount (or vertical shake amount) from time T to time T + 1.
- control The unit 150 may control the image sensor 120 to operate in a column interval output mode; when the horizontal variation is less than the vertical variation, the control unit 150 may control the image sensor 120 to operate in a row interval output mode.
- the preset threshold in the above step S120 may be determined according to the accuracy of the image shake compensation.
- the preset threshold is used to determine whether a shake that occurs when a user uses the mobile terminal 100 for shooting reaches a degree that affects the quality of the picture. If the amount of shake of the mobile terminal 100 is less than or equal to a preset threshold at the shutter response time, it indicates that the shake that occurs is not sufficient to affect the quality of the mobile terminal 100's photographing and does not need to compensate for this image shake; if the mobile terminal 100 is at the shutter response time If the amount of jitter is greater than a preset threshold, it indicates that the occurrence of the jitter will affect the quality of the mobile terminal 100 taking pictures, and image jitter compensation is required.
- FIG. 3 is a flowchart of step S110 of the method for image shake compensation shown in FIG. 1.
- step S110 shown in FIG. 1 may include steps S111 to S113.
- step S111 the first orientation information of the mobile terminal at the shutter response time and the second orientation information of the mobile terminal at the moment immediately before the shutter response are measured by the gyroscope.
- step S112 the amount of position change between the first orientation information and the second orientation information is calculated to obtain a shake amount of the mobile terminal at the shutter response time.
- step S113 it is determined whether the amount of shake of the mobile terminal at the shutter response time is greater than a preset threshold.
- the shake amount of the mobile terminal at the shutter response time can be measured by the gyroscope 130 and output to the control unit 150.
- the control unit 150 may determine whether the amount of shake of the mobile terminal at the shutter response time is greater than a preset threshold.
- the amount of shake of the mobile terminal at the shutter response time is greater than a preset threshold, it indicates that the occurrence of shake will affect the quality of the mobile terminal's photographing. It is necessary to further detect the maximum shake direction of the mobile terminal at the shutter response time, and according to the maximum shake direction of the mobile terminal To choose the appropriate image shake compensation method.
- the gyroscope 130 detects the azimuth change of the mobile terminal 100 in the directions of the three axes of X, Y, and Z
- the shake is usually sent in the X-axis direction (horizontal direction) or the Y-axis direction (vertical direction).
- the “horizontal direction” and the “vertical direction” described herein are directions that refer to the pixel array of the image sensor 120, that is, the horizontal direction is a direction parallel to the row direction of the pixel array of the image sensor 120, and vertical The straight direction is a direction parallel to the column direction of the pixel array of the image sensor 120.
- FIG. 4 shows a flowchart of step S120 of the method for image shake compensation shown in FIG. 1.
- step S120 shown in FIG. 1 may include steps S121 to S122.
- step S121 in response to the amount of shake being greater than a preset threshold, obtaining a horizontal shake amount and a vertical shake amount of the mobile terminal at the shutter response time.
- step S122 the horizontal shake amount and the vertical shake amount are compared. In response to the horizontal shake amount being greater than the vertical shake amount, it is determined that the maximum jitter direction of the mobile terminal is the horizontal direction, and in response to the vertical shake amount being greater than the horizontal shake amount, the movement is determined.
- the maximum jitter direction of the terminal is the vertical direction.
- the control unit 150 determines that the amount of shake of the mobile terminal 100 at the shutter response time is greater than a preset threshold, the control unit 150 further obtains the amount of shake of the mobile terminal 100 in the X-axis direction when the shutter responds through the gyro 130 (i.e. , Horizontal jitter amount) and the amount of jitter in the Y-axis direction (that is, the amount of vertical jitter), that is, the amount of displacement of the mobile terminal 100 in the X-axis direction from time T to time T + 1, and the mobile terminal 100 The amount of displacement in the Y-axis direction from time T to time T + 1.
- the maximum jitter direction of the mobile terminal 100 is a horizontal direction, and if the amount of jitter in the Y-axis direction is greater than the amount of jitter in the X-axis direction , It is determined that the maximum jitter direction of the mobile terminal 100 is a vertical direction.
- a corresponding interval output method may be selected for the pixel array of the image sensor 120 according to the maximum shake direction of the mobile terminal 100.
- FIG. 5 shows a flowchart of step S130 of the method for image shake compensation shown in FIG. 1.
- step S130 shown in FIG. 1 may include steps S131 to S132.
- step S131 in response to determining that the maximum jitter direction of the mobile terminal is a horizontal direction, a column interval output method is selected for the pixel array of the image sensor.
- step S132 in response to determining that the maximum jitter direction of the mobile terminal is a vertical direction, a line interval output mode is selected for the pixel array of the image sensor.
- the number D of column intervals may be selected according to the numerical interval where the horizontal jitter amount is located, where D is a positive integer, And the adjacent D column pixels are used as the processing unit.
- the number of row intervals d can be selected according to the numerical interval where the vertical jitter amount is located, where d is positive An integer, and the adjacent d-row pixels are used as a processing unit.
- each processing unit in the pixel array of the image sensor 120 consisting of pixels from the (N-1) * D + 1th column to the N * Dth column is selected as the first frame original image, where , N is a positive and odd number starting from 1, and each processing unit composed of pixels from the (M-1) * D + 1th column to the M * Dth column in the pixel array of the image sensor 120 is selected as the second frame The original image, where M is a positive even number starting from 2.
- the maximum jitter direction of the mobile terminal 100 is the horizontal direction
- the image sensor 120 works in a column interval output mode, that is, when the number D of column intervals is 1, the first frame is original.
- the image is composed of pixels in columns 1, 3, 5, 7 ... and the second frame of the original image is composed of pixels in columns 2, 4, 6, 8 ...
- the value of the horizontal jitter amount may be divided into multiple numerical intervals, and the corresponding number of column intervals D is selected according to the numerical interval where the horizontal jitter amount is located.
- the image sensor 120 may The output is in the form of 2 columns, that is, when the number of column intervals D is 2, the first frame of the original image is composed of pixels in the 1, 2, 5, 6, 9, 10, ... columns, and the second frame of the original image Consists of pixels in the 3rd, 4th, 7th, 8th, 11th, 12th ... columns.
- each processing unit in the pixel array of the image sensor 120 consisting of pixels from the (n-1) * d + 1th row to the pixels in the n * dth row is selected as the first frame original image, where , N is a positive and odd number starting from 1, and each processing unit composed of pixels from the (m-1) * d + 1th row to the m * dth column in the pixel array of the image sensor 120 is selected as the second frame
- the original image where m is a positive even number starting from 2.
- the maximum jitter direction of the mobile terminal 100 is the vertical direction
- the image sensor 120 works in a line interval output mode, that is, in the case where the number of line intervals d is 1, the first frame
- the original image is composed of pixels in rows 1, 3, 5, 7, ...
- the second frame of original image is composed of pixels in rows 2, 4, 6, 8, ....
- the value of the vertical shake amount can be divided into multiple numerical intervals, and the corresponding number of line intervals d is selected according to the numerical interval where the vertical shake amount is located.
- the image The sensor 120 can output in two-line intervals, that is, when the number d of line intervals is two, the first frame of the original image is composed of pixels of the first, second, fifth, sixth, nineth, tenth, ... lines, and the second
- the original frame image consists of the 3rd, 4th, 7th, 8th, 11th, 12th ... pixels.
- the image processor 140 acquires the first frame original image and the second frame original image at the shutter response time, the first frame original image and the second frame original image are processed.
- FIG. 6 shows a flowchart of step S140 of the method for image shake compensation shown in FIG. 1.
- step S140 shown in FIG. 1 may include steps S141 to S142.
- step S141 image synthesis is performed on the first frame original image and the second frame original image by the image processor to obtain an image in a raw data format.
- step S142 the image in the original data format is converted into the image in the target data format, and the image in the target data format is subjected to image processing to generate a target image.
- FIG. 7 is a structural block diagram of an apparatus for image shake compensation according to an embodiment of the present disclosure.
- an image shake compensation apparatus 20 includes a memory 21 and a processor 22.
- a computer program is stored in the memory 21.
- the memory 21 and the processor 22 are connected through a data bus 23.
- the processor 22 may execute a method of image shake compensation according to various embodiments of the present disclosure.
- An embodiment of the present disclosure also provides a computer-readable storage medium on which one or more computer programs are stored. When the one or more computer programs are executed by one or more processors, the one or more processes are processed. The processor performs a method of image shake compensation according to various embodiments of the present disclosure.
- an original image is divided into a first frame original image and a second frame original image by interlacing or interlacing, that is, the first frame original image is composed.
- This can avoid the occurrence of jitter due to the occurrence of adjacent row pixels or adjacent column pixels. Smear caused by overlapping.
- only the first frame of the original image and the second frame of the original image are synthesized to produce a clear and complete target image. According to the technical solution of the present disclosure, it is possible to effectively solve the image smear phenomenon caused by dithering when dithering occurs without adding additional hardware.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
Abstract
Provided in the present disclosure are an imaging shake compensation method and device, and a computer readable storage medium. The method comprises: detecting whether a shake amount of a mobile terminal at the moment that the shutter responds is greater than a preset threshold; in response to a detection result indicating that the shake amount is greater than the preset threshold, detecting a direction in which a maximum shake amount of the mobile terminal at the moment that the shutter responds is detected; selecting a corresponding intervalled output mode for a pixel array of an imaging sensor according to the direction in which the maximum shake amount of the mobile terminal is detected so as to acquire a first original image and a second original image at the moment that the shutter responds; and compositing the first original image and the second original image to generate a target image.
Description
本公开涉及(但不限于)图像处理技术领域。The present disclosure relates to, but is not limited to, the field of image processing technology.
移动终端的拍照功能越来越被消费者所关注,拍照功能的质量已成为衡量移动终端的性能的一个重要指标。拍摄出来的图像的清晰度可以用来评价移动终端的拍照功能的质量。The camera function of mobile terminals is more and more concerned by consumers, and the quality of the camera function has become an important indicator for measuring the performance of mobile terminals. The sharpness of the captured image can be used to evaluate the quality of the camera function of the mobile terminal.
图像清晰度主要取决于成像模组本身的性能与后期图像处理的优化能力。在实际应用中,拍摄者在很多场景下,比如,光线较暗的场景、运动中的场景、抓拍运动物体的场景等,进行拍摄时,容易出现画面抖动、拖影等成像问题。为了解决拍摄时由抖动造成的图像拖影,通常采用光学防抖技术。光学防抖需要通过增加硬件部件来实现,成本比较高。The image sharpness mainly depends on the performance of the imaging module itself and the optimization ability of the later image processing. In practical applications, in many scenes, such as scenes with low light, scenes in motion, scenes that capture moving objects, etc., when shooting, it is prone to imaging problems such as screen shake and smear. In order to solve the image smear caused by shake when shooting, optical image stabilization technology is usually used. Optical image stabilization needs to be implemented by adding hardware components, and the cost is relatively high.
发明内容Summary of the Invention
根据本公开实施例,提供了一种图像抖动补偿的方法,包括:检测在快门响应时刻移动终端的抖动量是否大于预设阈值;响应于所述抖动量大于所述预设阈值,检测在所述快门响应时刻所述移动终端的最大抖动方向;根据所述移动终端的最大抖动方向,为图像传感器的像素阵列选择相应的间隔输出方式,以获取在所述快门响应时刻的第一帧原始图像和第二帧原始图像;以及对所述第一帧原始图像和第二帧原始图像进行图像合成,生成目标图像According to an embodiment of the present disclosure, a method for image shake compensation is provided, including: detecting whether a shake amount of a mobile terminal at a shutter response time is greater than a preset threshold; and in response to the shake amount being greater than the preset threshold, detecting a The maximum jitter direction of the mobile terminal at the shutter response time; according to the maximum jitter direction of the mobile terminal, selecting a corresponding interval output method for the pixel array of the image sensor to obtain the first frame of the original image at the shutter response time And the second frame of the original image; and performing image synthesis on the first frame of the original image and the second frame of the original image to generate a target image
根据本公开实施例,还提供一种图像抖动补偿的装置,包括存储器和处理器,所述存储器上存储有计算机程序,所述计算机程序被所述处理器执行时,所述处理器执行根据本公开的图像抖动补偿的方法。According to an embodiment of the present disclosure, an apparatus for image shake compensation is further provided, which includes a memory and a processor. The memory stores a computer program. When the computer program is executed by the processor, the processor performs Disclosed method for image shake compensation.
根据本公开实施例,还提供一种计算机可读存储介质,其上存储有一个或者多个计算机程序,所述一个或者多个计算机程序被一个 或者多个处理器执行时,所述一个或者多个处理器执行根据本公开的图像抖动补偿的方法。According to an embodiment of the present disclosure, there is also provided a computer-readable storage medium on which one or more computer programs are stored. When the one or more computer programs are executed by one or more processors, the one or more Processors execute a method of image shake compensation according to the present disclosure.
图1是根据本公开实施例的图像抖动补偿的方法的流程图。FIG. 1 is a flowchart of a method for image shake compensation according to an embodiment of the present disclosure.
图2是根据本公开实施例的移动终端的结构框图。FIG. 2 is a structural block diagram of a mobile terminal according to an embodiment of the present disclosure.
图3示出了图1所示图像抖动补偿的方法的步骤S110的流程图。FIG. 3 is a flowchart of step S110 of the method for image shake compensation shown in FIG. 1.
图4示出了图1所示图像抖动补偿的方法的步骤S120的流程图。FIG. 4 shows a flowchart of step S120 of the method for image shake compensation shown in FIG. 1.
图5示出了图1所示图像抖动补偿的方法的步骤S130的流程图。FIG. 5 shows a flowchart of step S130 of the method for image shake compensation shown in FIG. 1.
图6示出了图1所示图像抖动补偿的方法的步骤S140的流程图。FIG. 6 shows a flowchart of step S140 of the method for image shake compensation shown in FIG. 1.
图7是根据本公开实施例的图像抖动补偿的装置的结构框图。FIG. 7 is a structural block diagram of an apparatus for image shake compensation according to an embodiment of the present disclosure.
本公开目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional characteristics and advantages of the purpose of the present disclosure will be further described with reference to the embodiments and the drawings.
应当理解,此处所描述的具体实施例仅仅用以解释本公开,并不用于限定本公开。It should be understood that the specific embodiments described herein are only used to explain the present disclosure and are not intended to limit the present disclosure.
图1是根据本公开实施例的图像抖动补偿的方法的流程图。FIG. 1 is a flowchart of a method for image shake compensation according to an embodiment of the present disclosure.
如图1所示,根据本公开实施例的图像抖动补偿的方法包括步骤S110至S140:As shown in FIG. 1, a method for image shake compensation according to an embodiment of the present disclosure includes steps S110 to S140:
在步骤S110,检测在快门响应时刻移动终端的抖动量是否大于预设阈值。In step S110, it is detected whether the amount of shake of the mobile terminal at the shutter response time is greater than a preset threshold.
在步骤S120,响应于抖动量大于预设阈值,检测在快门响应时刻移动终端的最大抖动方向。In step S120, in response to the amount of shake being greater than a preset threshold, detecting a maximum shake direction of the mobile terminal at the shutter response time.
在步骤S130,根据移动终端的最大抖动方向,为图像传感器的像素阵列选择相应的间隔输出方式,以获取在快门响应时刻的第一帧原始图像和第二帧原始图像。In step S130, according to the maximum jitter direction of the mobile terminal, a corresponding interval output method is selected for the pixel array of the image sensor to obtain the first frame original image and the second frame original image at the shutter response time.
在步骤S140,对第一帧原始图像和第二帧原始图像进行图像合成,生成目标图像。In step S140, image synthesis is performed on the first frame original image and the second frame original image to generate a target image.
图2是根据本公开实施例的移动终端的结构框图。FIG. 2 is a structural block diagram of a mobile terminal according to an embodiment of the present disclosure.
如图2所示,移动终端100包括摄像头110、图像传感器120、陀螺仪130、图像处理器140以及控制单元150。As shown in FIG. 2, the mobile terminal 100 includes a camera 110, an image sensor 120, a gyroscope 130, an image processor 140, and a control unit 150.
摄像头110用于在拍摄时采集图像。The camera 110 is used to capture images during shooting.
图像传感器120可为互补金属氧化物半导体(Complementary Metal Oxide Semiconductor,CMOS)传感器,或者电荷耦合器件(Charge Coupled Device,CCD)传感器。图像传感器120可以包括以阵列排列的多行和多列像素。The image sensor 120 may be a Complementary Metal Oxide Semiconductor (CMOS) sensor, or a Charge Coupled Device (CCD) sensor. The image sensor 120 may include a plurality of rows and a plurality of columns of pixels arranged in an array.
陀螺仪130用于实时探测移动终端100的方位和角度的变化量。陀螺仪130可以在X、Y、Z三个轴的方向上进行探测,并分别记录在每个轴方向上在T时刻的数值与T+1时刻数值。T时刻为点击快门拍照时(即,快门响应时刻)的前一时刻,并且T+1时刻为快门响应的时刻。The gyroscope 130 is used to detect changes in the azimuth and angle of the mobile terminal 100 in real time. The gyroscope 130 can detect in the directions of the three axes of X, Y, and Z, and record the value at time T and the value at time T + 1 in each axis direction. Time T is the previous time when the shutter is clicked to take a picture (ie, the shutter response time), and time T + 1 is the time when the shutter responds.
图像处理器140可以多帧图像进行处理合成,并对处理合成后的原始数据格式的图像进行转换,得到目标数据格式的图像,并再次对目标数据格式的的图像进行处理(例如,自动白平衡、自动曝光、自动对焦等),以得到目标图像。The image processor 140 may process and synthesize multiple frames of images, and convert the processed and synthesized images in the original data format to obtain images in the target data format, and process the images in the target data format again (for example, automatic white balance). , Auto exposure, auto focus, etc.) to get the target image.
控制单元150可以控制图像传感器120的像素阵列的间隔输出方式。例如,陀螺仪130测量到从T时刻到T+1时刻的水平变化量(或水平抖动量)和竖直变化量(或竖直抖动量),当水平变化量大于竖直变化量时,控制单元150可以控制图像传感器120以列间隔输出方式工作;当水平变化量小于竖直变化量时,控制单元150可以控制图像传感器120以行间隔输出方式工作。The control unit 150 may control the interval output mode of the pixel array of the image sensor 120. For example, the gyroscope 130 measures the horizontal change amount (or horizontal shake amount) and vertical change amount (or vertical shake amount) from time T to time T + 1. When the horizontal change amount is greater than the vertical change amount, control The unit 150 may control the image sensor 120 to operate in a column interval output mode; when the horizontal variation is less than the vertical variation, the control unit 150 may control the image sensor 120 to operate in a row interval output mode.
上述步骤S120中的预设阈值可根据图像抖动补偿的精度来确定。预设阈值用于判断用户在使用本移动终端100进行拍摄时所发生的抖动是否达到影响拍照质量的程度。若在快门响应时刻移动终端100的抖动量小于或等于预设阈值,则表示发生的抖动不足以影响移动终端100拍照的质量,并无需进行本图像抖动的补偿;若在快门响应时刻移动终端100的抖动量大于预设阈值,则表示发生的抖动会影响移动终端100拍照的质量,需进行图像抖动的补偿。The preset threshold in the above step S120 may be determined according to the accuracy of the image shake compensation. The preset threshold is used to determine whether a shake that occurs when a user uses the mobile terminal 100 for shooting reaches a degree that affects the quality of the picture. If the amount of shake of the mobile terminal 100 is less than or equal to a preset threshold at the shutter response time, it indicates that the shake that occurs is not sufficient to affect the quality of the mobile terminal 100's photographing and does not need to compensate for this image shake; if the mobile terminal 100 is at the shutter response time If the amount of jitter is greater than a preset threshold, it indicates that the occurrence of the jitter will affect the quality of the mobile terminal 100 taking pictures, and image jitter compensation is required.
图3示出了图1所示图像抖动补偿的方法的步骤S110的流程图。FIG. 3 is a flowchart of step S110 of the method for image shake compensation shown in FIG. 1.
如图3所示,图1所示的步骤S110可以包括步骤S111至S 113。As shown in FIG. 3, step S110 shown in FIG. 1 may include steps S111 to S113.
在步骤S111,通过陀螺仪测量在快门响应时刻移动终端的第一方位信息以及在快门响应的前一时刻移动终端的第二方位信息。In step S111, the first orientation information of the mobile terminal at the shutter response time and the second orientation information of the mobile terminal at the moment immediately before the shutter response are measured by the gyroscope.
在步骤S112,计算第一方位信息与第二方位信息之间的位置变化量,以获取在快门响应时刻移动终端的抖动量。In step S112, the amount of position change between the first orientation information and the second orientation information is calculated to obtain a shake amount of the mobile terminal at the shutter response time.
在步骤S113,判断在快门响应时刻移动终端的抖动量是否大于预设阈值。In step S113, it is determined whether the amount of shake of the mobile terminal at the shutter response time is greater than a preset threshold.
参见图2,可通过陀螺仪130测量出在快门响应时刻该移动终端的抖动量,并输出给控制单元150。控制单元150可以判断出在快门响应时刻移动终端的抖动量是否大于预设阈值。Referring to FIG. 2, the shake amount of the mobile terminal at the shutter response time can be measured by the gyroscope 130 and output to the control unit 150. The control unit 150 may determine whether the amount of shake of the mobile terminal at the shutter response time is greater than a preset threshold.
若在快门响应时刻移动终端的抖动量大于预设阈值,则表示发生的抖动会影响移动终端拍照的质量,需进一步检测在快门响应时刻移动终端的最大抖动方向,并根据移动终端的最大抖动方向来选择合适的图像抖动补偿的方式。If the amount of shake of the mobile terminal at the shutter response time is greater than a preset threshold, it indicates that the occurrence of shake will affect the quality of the mobile terminal's photographing. It is necessary to further detect the maximum shake direction of the mobile terminal at the shutter response time, and according to the maximum shake direction of the mobile terminal To choose the appropriate image shake compensation method.
虽然陀螺仪130在X、Y、Z三个轴的方向上探测移动终端100的方位变化量,在实际拍摄时,抖动通常发送在X轴方向(水平方向)或Y轴方向(竖直方向)上。应当认识到,本文所述的“水平方向”和“竖直方向”为参考了图像传感器120的像素阵列的方向,即,水平方向为与图像传感器120的像素阵列的行方向平行的方向,竖直方向为与图像传感器120的像素阵列的列方向平行的方向。Although the gyroscope 130 detects the azimuth change of the mobile terminal 100 in the directions of the three axes of X, Y, and Z, in actual shooting, the shake is usually sent in the X-axis direction (horizontal direction) or the Y-axis direction (vertical direction). on. It should be recognized that the “horizontal direction” and the “vertical direction” described herein are directions that refer to the pixel array of the image sensor 120, that is, the horizontal direction is a direction parallel to the row direction of the pixel array of the image sensor 120, and vertical The straight direction is a direction parallel to the column direction of the pixel array of the image sensor 120.
图4示出了图1所示图像抖动补偿的方法的步骤S120的流程图。FIG. 4 shows a flowchart of step S120 of the method for image shake compensation shown in FIG. 1.
如图4所示,图1所示的步骤S120可以包括步骤S121至S 122。As shown in FIG. 4, step S120 shown in FIG. 1 may include steps S121 to S122.
在步骤S121,响应于抖动量大于预设阈值,获取在快门响应时刻移动终端的水平抖动量与竖直抖动量。In step S121, in response to the amount of shake being greater than a preset threshold, obtaining a horizontal shake amount and a vertical shake amount of the mobile terminal at the shutter response time.
在步骤S122,比较水平抖动量与竖直抖动量,响应于水平抖动量大于竖直抖动量,判断移动终端的最大抖动方向为水平方向,并且响应于竖直抖动量大于水平抖动量,判断移动终端的最大抖动方向为竖直方向。In step S122, the horizontal shake amount and the vertical shake amount are compared. In response to the horizontal shake amount being greater than the vertical shake amount, it is determined that the maximum jitter direction of the mobile terminal is the horizontal direction, and in response to the vertical shake amount being greater than the horizontal shake amount, the movement is determined. The maximum jitter direction of the terminal is the vertical direction.
当控制单元150判断出在快门响应时刻移动终端100的抖动量大于预设阈值时,控制单元150通过陀螺仪130进一步获取在快门响 应时该移动终端100的在X轴方向上的抖动量(即,水平抖动量)与在Y轴方向上的抖动量(即,竖直抖动量),即,获取移动终端100从T时刻到T+1时刻在X轴方向上发生的位移量,以及移动终端100从T时刻到T+1时刻在Y轴方向上发生的位移量。若在X轴方向上的抖动量大于在Y轴方向上的抖动量,则判断移动终端100的最大抖动方向为水平方向,若在Y轴方向上的抖动量大于在X轴方向上的抖动量,则判断移动终端100的最大抖动方向为竖直方向。When the control unit 150 determines that the amount of shake of the mobile terminal 100 at the shutter response time is greater than a preset threshold, the control unit 150 further obtains the amount of shake of the mobile terminal 100 in the X-axis direction when the shutter responds through the gyro 130 (i.e. , Horizontal jitter amount) and the amount of jitter in the Y-axis direction (that is, the amount of vertical jitter), that is, the amount of displacement of the mobile terminal 100 in the X-axis direction from time T to time T + 1, and the mobile terminal 100 The amount of displacement in the Y-axis direction from time T to time T + 1. If the amount of jitter in the X-axis direction is greater than the amount of jitter in the Y-axis direction, it is determined that the maximum jitter direction of the mobile terminal 100 is a horizontal direction, and if the amount of jitter in the Y-axis direction is greater than the amount of jitter in the X-axis direction , It is determined that the maximum jitter direction of the mobile terminal 100 is a vertical direction.
在通过上述步骤S120检测出在快门响应时刻移动终端100的最大抖动方向,可根据移动终端100的最大抖动方向,来为图像传感器120的像素阵列选择相应的间隔输出方式。After detecting the maximum shake direction of the mobile terminal 100 at the shutter response time through the above step S120, a corresponding interval output method may be selected for the pixel array of the image sensor 120 according to the maximum shake direction of the mobile terminal 100.
图5示出了图1所示图像抖动补偿的方法的步骤S130的流程图。FIG. 5 shows a flowchart of step S130 of the method for image shake compensation shown in FIG. 1.
如图5所示,图1所示的步骤S130可以包括步骤S131至S 132。As shown in FIG. 5, step S130 shown in FIG. 1 may include steps S131 to S132.
在步骤S131,响应于判断移动终端的最大抖动方向为水平方向,为图像传感器的像素阵列选择列间隔输出方式。In step S131, in response to determining that the maximum jitter direction of the mobile terminal is a horizontal direction, a column interval output method is selected for the pixel array of the image sensor.
在步骤S132,响应于判断移动终端的最大抖动方向为竖直方向,为图像传感器的像素阵列选择行间隔输出方式。In step S132, in response to determining that the maximum jitter direction of the mobile terminal is a vertical direction, a line interval output mode is selected for the pixel array of the image sensor.
若判断移动终端100的最大抖动方向为水平方向,即,与图像传感器120的像素阵列的行方向平行的方向,可以根据水平抖动量所在的数值区间选择列间隔的数量D,D为正整数,并且将相邻的D列像素做为处理单元。If it is determined that the maximum jitter direction of the mobile terminal 100 is a horizontal direction, that is, a direction parallel to the row direction of the pixel array of the image sensor 120, the number D of column intervals may be selected according to the numerical interval where the horizontal jitter amount is located, where D is a positive integer, And the adjacent D column pixels are used as the processing unit.
若判断移动终端100的最大抖动方向为竖直方向,即,与图像传感器120的像素阵列的列方向平行的方向,可以根据竖直抖动量所在的数值区间选择行间隔的数量d,d为正整数,并且将相邻的d行像素做为处理单元。If it is determined that the maximum jitter direction of the mobile terminal 100 is a vertical direction, that is, a direction parallel to the column direction of the pixel array of the image sensor 120, the number of row intervals d can be selected according to the numerical interval where the vertical jitter amount is located, where d is positive An integer, and the adjacent d-row pixels are used as a processing unit.
在列间隔输出方式下,选择图像传感器120的像素阵列中由第(N-1)*D+1列像素至第N*D列像素组成的各个处理单元作为所述第一帧原始图像,其中,N为从1开始的正奇数,并且选择图像传感器120的像素阵列中由第(M-1)*D+1列像素至第M*D列像素组成的各个处理单元作为所述第二帧原始图像,其中,M为从2开始的正偶数。In the column interval output mode, each processing unit in the pixel array of the image sensor 120 consisting of pixels from the (N-1) * D + 1th column to the N * Dth column is selected as the first frame original image, where , N is a positive and odd number starting from 1, and each processing unit composed of pixels from the (M-1) * D + 1th column to the M * Dth column in the pixel array of the image sensor 120 is selected as the second frame The original image, where M is a positive even number starting from 2.
当水平抖动量大于竖直抖动量时,移动终端100的最大抖动方 向为水平方向,图像传感器120以列间隔输出方式工作,即,在列间隔的数量D为1的情况下,第一帧原始图像由第1、3、5、7…列像素组成,第二帧原始图像由第2、4、6、8…列像素组成。根据本公开的实施例,可将水平抖动量的值划分为多个数值区间,并且根据水平抖动量所在的数值区间选择相应的列间隔的数量D,水平抖动量较大时,图像传感器120可以按照间隔2列的方式输出,即,在列间隔的数量D为2的情况下,第一帧原始图像由第1、2、5、6、9、10…列像素组成,第二帧原始图像由第3、4、7、8、11、12…列像素组成。水平抖动量的数值越大,列间隔的数量D就越大。When the amount of horizontal jitter is greater than the amount of vertical jitter, the maximum jitter direction of the mobile terminal 100 is the horizontal direction, and the image sensor 120 works in a column interval output mode, that is, when the number D of column intervals is 1, the first frame is original. The image is composed of pixels in columns 1, 3, 5, 7 ... and the second frame of the original image is composed of pixels in columns 2, 4, 6, 8 ... According to the embodiment of the present disclosure, the value of the horizontal jitter amount may be divided into multiple numerical intervals, and the corresponding number of column intervals D is selected according to the numerical interval where the horizontal jitter amount is located. When the horizontal jitter amount is large, the image sensor 120 may The output is in the form of 2 columns, that is, when the number of column intervals D is 2, the first frame of the original image is composed of pixels in the 1, 2, 5, 6, 9, 10, ... columns, and the second frame of the original image Consists of pixels in the 3rd, 4th, 7th, 8th, 11th, 12th ... columns. The larger the value of the horizontal jitter amount, the larger the number D of column intervals.
在行间隔输出方式下,选择图像传感器120的像素阵列中由第(n-1)*d+1行像素至第n*d行像素组成的各个处理单元作为所述第一帧原始图像,其中,n为从1开始的正奇数,并且选择图像传感器120的像素阵列中由第(m-1)*d+1行像素至第m*d列像素组成的各个处理单元作为所述第二帧原始图像,其中,m为从2开始的正偶数。In the line interval output mode, each processing unit in the pixel array of the image sensor 120 consisting of pixels from the (n-1) * d + 1th row to the pixels in the n * dth row is selected as the first frame original image, where , N is a positive and odd number starting from 1, and each processing unit composed of pixels from the (m-1) * d + 1th row to the m * dth column in the pixel array of the image sensor 120 is selected as the second frame The original image, where m is a positive even number starting from 2.
当水平抖动量小于竖直抖动量时,移动终端100的最大抖动方向为竖直方向,图像传感器120以行间隔输出方式工作,即,在行间隔的数量d为1的情况下,第一帧原始图像由第1、3、5、7…行像素组成,第二帧原始图像由第2、4、6、8…行像素组成。根据本公开的实施例,可将竖直抖动量的值划分为多个数值区间,并且根据竖直抖动量所在的数值区间选择相应的行间隔的数量d,竖直抖动量较大时,图像传感器120可以按照间隔2行的方式输出,即,在行间隔的数量d为2的情况下,第一帧原始图像由第1、2、5、6、9、10…行像素组成,第二帧原始图像由第3、4、7、8、11、12…行像素组成。竖直抖动量的数值越大,行间隔的数量d就越大。When the amount of horizontal jitter is less than the amount of vertical jitter, the maximum jitter direction of the mobile terminal 100 is the vertical direction, and the image sensor 120 works in a line interval output mode, that is, in the case where the number of line intervals d is 1, the first frame The original image is composed of pixels in rows 1, 3, 5, 7, ..., and the second frame of original image is composed of pixels in rows 2, 4, 6, 8, .... According to the embodiment of the present disclosure, the value of the vertical shake amount can be divided into multiple numerical intervals, and the corresponding number of line intervals d is selected according to the numerical interval where the vertical shake amount is located. When the vertical shake amount is large, the image The sensor 120 can output in two-line intervals, that is, when the number d of line intervals is two, the first frame of the original image is composed of pixels of the first, second, fifth, sixth, nineth, tenth, ... lines, and the second The original frame image consists of the 3rd, 4th, 7th, 8th, 11th, 12th ... pixels. The larger the value of the vertical jitter amount, the larger the number of line intervals d.
在图像处理器140获取了在快门响应时刻的第一帧原始图像和第二帧原始图像后,对第一帧原始图像和第二帧原始图像进行处理。After the image processor 140 acquires the first frame original image and the second frame original image at the shutter response time, the first frame original image and the second frame original image are processed.
图6示出了图1所示图像抖动补偿的方法的步骤S140的流程图。FIG. 6 shows a flowchart of step S140 of the method for image shake compensation shown in FIG. 1.
如图6所示,图1所示的步骤S140可以包括步骤S141至S 142。As shown in FIG. 6, step S140 shown in FIG. 1 may include steps S141 to S142.
在步骤S141,通过图像处理器对第一帧原始图像和第二帧原始图像进行图像合成,以得到原始数据格式的图像。In step S141, image synthesis is performed on the first frame original image and the second frame original image by the image processor to obtain an image in a raw data format.
在步骤S142,将原始数据格式的图像转换成目标数据格式的图像,并对目标数据格式的图像进行图像处理,以生成目标图像。In step S142, the image in the original data format is converted into the image in the target data format, and the image in the target data format is subjected to image processing to generate a target image.
图7是根据本公开实施例的图像抖动补偿的装置的结构框图。FIG. 7 is a structural block diagram of an apparatus for image shake compensation according to an embodiment of the present disclosure.
如图7所示,根据本公开实施例的图像抖动补偿的装置20包括存储器21和处理器22。在存储器21上存储有计算机程序。存储器21和处理器22通过数据总线23相连。存储在存储器21上的计算机程序被处理器22执行时,处理器22可以执行根据本公开各实施例的图像抖动补偿的方法。As shown in FIG. 7, an image shake compensation apparatus 20 according to an embodiment of the present disclosure includes a memory 21 and a processor 22. A computer program is stored in the memory 21. The memory 21 and the processor 22 are connected through a data bus 23. When the computer program stored on the memory 21 is executed by the processor 22, the processor 22 may execute a method of image shake compensation according to various embodiments of the present disclosure.
本公开实施例还提供一种计算机可读存储介质,其上存储有一个或者多个计算机程序,所述一个或者多个计算机程序被一个或者多个处理器执行时,所述一个或者多个处理器执行根据本公开各实施例的图像抖动补偿的方法。An embodiment of the present disclosure also provides a computer-readable storage medium on which one or more computer programs are stored. When the one or more computer programs are executed by one or more processors, the one or more processes are processed. The processor performs a method of image shake compensation according to various embodiments of the present disclosure.
根据本公开实施例的图像抖动补偿的方法,在图像传感器的像素阵列中,隔行或者隔列来将原始图像分割为第一帧原始图像和第二帧原始图像,即,组成第一帧原始图像的所有行像素或列像素之间存在间隔,组成第二帧原始图像的所有行像素或列像素之间也存在间隔,从而可以避免在发生抖动时,由于相邻行像素或相邻列像素发生重叠而产生的拖影现象。随后,只需对第一帧原始图像和第二帧原始图像进行图像合成,便可生成清晰、完整的目标图像。根据本公开的技术方案,其无需增加额外硬件,便可在发生抖动时,有效解决抖动造成的图像拖影现象。According to the image shake compensation method of the embodiment of the present disclosure, in a pixel array of an image sensor, an original image is divided into a first frame original image and a second frame original image by interlacing or interlacing, that is, the first frame original image is composed. There is a gap between all the row pixels or column pixels of. And there is also a gap between all the row pixels or column pixels that make up the second frame of the original image. This can avoid the occurrence of jitter due to the occurrence of adjacent row pixels or adjacent column pixels. Smear caused by overlapping. Then, only the first frame of the original image and the second frame of the original image are synthesized to produce a clear and complete target image. According to the technical solution of the present disclosure, it is possible to effectively solve the image smear phenomenon caused by dithering when dithering occurs without adding additional hardware.
上面结合附图对本公开的实施例进行了描述,但是本公开并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本公开的启示下,在不脱离本公开宗旨和权利要求所保护的范围情况下,还可做出很多形式,这些均属于本公开的保护之内。The embodiments of the present disclosure have been described above with reference to the accompanying drawings, but the present disclosure is not limited to the specific implementations described above, and the specific implementations described above are only schematic and not restrictive. Those of ordinary skill in the art at Under the inspiration of the present disclosure, many forms can be made without departing from the scope of the present disclosure and the scope of protection of the claims, and these all fall into the protection of the present disclosure.
Claims (10)
- 一种图像抖动补偿的方法,包括:A method for image shake compensation includes:检测在快门响应时刻移动终端的抖动量是否大于预设阈值;Detecting whether the amount of shake of the mobile terminal at a shutter response time is greater than a preset threshold;响应于所述抖动量大于所述预设阈值,检测在所述快门响应时刻所述移动终端的最大抖动方向;In response to the amount of jitter being greater than the preset threshold, detecting a maximum jitter direction of the mobile terminal at the shutter response time;根据所述移动终端的最大抖动方向,为图像传感器的像素阵列选择相应的间隔输出方式,以获取在所述快门响应时刻的第一帧原始图像和第二帧原始图像;以及Selecting a corresponding interval output method for the pixel array of the image sensor according to the maximum jitter direction of the mobile terminal to obtain a first frame original image and a second frame original image at the shutter response time; and对所述第一帧原始图像和第二帧原始图像进行图像合成,生成目标图像。Image synthesis is performed on the first frame original image and the second frame original image to generate a target image.
- 根据权利要求1所述的图像抖动补偿的方法,其中,检测在快门响应时刻移动终端的抖动量是否大于预设阈值的步骤包括:The method for image shake compensation according to claim 1, wherein the step of detecting whether the amount of shake of the mobile terminal at a shutter response time is greater than a preset threshold comprises:通过陀螺仪测量在所述快门响应时刻所述移动终端的第一方位信息以及在快门响应的前一时刻所述移动终端的第二方位信息;Measuring, by a gyroscope, first orientation information of the mobile terminal at the shutter response time and second orientation information of the mobile terminal at a moment before the shutter response;计算所述第一方位信息与所述第二方位信息之间的位置变化量,以获取在所述快门响应时刻所述移动终端的抖动量;以及Calculating a position change amount between the first position information and the second position information to obtain a shake amount of the mobile terminal at the shutter response time; and判断在所述快门响应时刻所述移动终端的抖动量是否大于所述预设阈值。Determining whether the amount of shake of the mobile terminal at the shutter response time is greater than the preset threshold.
- 根据权利要求1所述的图像抖动补偿的方法,其中,响应于所述抖动量大于所述预设阈值,检测在所述快门响应时刻所述移动终端的最大抖动方向的步骤包括:The method for image shake compensation according to claim 1, wherein in response to the amount of shake being greater than the preset threshold, the step of detecting a maximum shake direction of the mobile terminal at the shutter response time comprises:获取在所述快门响应时刻所述移动终端的水平抖动量与竖直抖动量;Acquiring a horizontal shake amount and a vertical shake amount of the mobile terminal at the shutter response time;比较所述水平抖动量与所述竖直抖动量;Comparing the amount of horizontal jitter with the amount of vertical jitter;响应于所述水平抖动量大于所述竖直抖动量,判断所述移动终端的最大抖动方向为水平方向;以及In response to the horizontal jitter amount being greater than the vertical jitter amount, determining that a maximum jitter direction of the mobile terminal is a horizontal direction; and响应于所述竖直抖动量大于所述水平抖动量,判断所述移动终 端的最大抖动方向为竖直方向。In response to the vertical jitter amount being greater than the horizontal jitter amount, it is determined that the maximum jitter direction of the mobile terminal is a vertical direction.
- 根据权利要求3所述的图像抖动补偿的方法,其中,根据所述移动终端的最大抖动方向,为图像传感器的像素阵列选择相应的间隔输出方式,以获取在所述快门响应时刻的第一帧原始图像和第二帧原始图像的步骤包括:The method for image shake compensation according to claim 3, wherein according to a maximum shake direction of the mobile terminal, a corresponding interval output mode is selected for a pixel array of an image sensor to obtain a first frame at the shutter response time The steps for the original image and the second frame of original image include:响应于判断所述移动终端的最大抖动方向为水平方向,为所述图像传感器的像素阵列选择列间隔输出方式。In response to determining that the maximum jitter direction of the mobile terminal is a horizontal direction, a column interval output method is selected for a pixel array of the image sensor.
- 根据权利要求4所述的图像抖动补偿的方法,其中,响应于判断所述移动终端的最大抖动方向为水平方向,为所述图像传感器的像素阵列选择列间隔输出方式的步骤包括:The method for image shake compensation according to claim 4, wherein in response to determining that the maximum shake direction of the mobile terminal is a horizontal direction, the step of selecting a column interval output mode for a pixel array of the image sensor comprises:根据所述水平抖动量所在的数值区间选择列间隔的数量D,D为正整数,并且将相邻的D列像素做为处理单元;Selecting the number D of column intervals according to a numerical interval where the horizontal jitter amount is located, where D is a positive integer, and using adjacent pixels in the D column as a processing unit;选择所述图像传感器的像素阵列中由第(N-1)*D+1列像素至第N*D列像素组成的各个处理单元作为所述第一帧原始图像,其中,N为从1开始的正奇数;以及Selecting each processing unit composed of pixels from the (N-1) * D + 1th column to the N * Dth column in the pixel array of the image sensor as the first frame of the original image, where N is from 1 Positive odd number of;选择所述图像传感器的像素阵列中由第(M-1)*D+1列像素至第M*D列像素组成的各个处理单元作为所述第二帧原始图像,其中,M为从2开始的正偶数。Selecting each processing unit composed of pixels from the (M-1) * D + 1th column to the M * Dth column in the pixel array of the image sensor as the second frame original image, where M is from 2 Positive even number.
- 根据权利要求3所述的图像抖动补偿的方法,其中,根据所述移动终端的最大抖动方向,为图像传感器的像素阵列选择相应的间隔输出方式,以获取在所述快门响应时刻的第一帧原始图像和第二帧原始图像的步骤包括:The method for image shake compensation according to claim 3, wherein according to a maximum shake direction of the mobile terminal, a corresponding interval output mode is selected for a pixel array of an image sensor to obtain a first frame at the shutter response time The steps for the original image and the second frame of original image include:响应于判断所述移动终端的最大抖动方向为竖直方向,为所述图像传感器的像素阵列选择行间隔输出方式。In response to determining that the maximum jitter direction of the mobile terminal is a vertical direction, a line interval output mode is selected for a pixel array of the image sensor.
- 根据权利要求6所述的图像抖动补偿的方法,其中,响应于判断所述移动终端的最大抖动方向为竖直方向,为所述图像传感器的 像素阵列选择行间隔输出方式的步骤包括:The method for image shake compensation according to claim 6, wherein in response to judging that a maximum shake direction of the mobile terminal is a vertical direction, the step of selecting a line interval output mode for a pixel array of the image sensor comprises:根据所述竖直抖动量所在的数值区间选择行间隔的数量d,d为正整数,并且将相邻的d行像素做为处理单元;Selecting the number of row intervals d according to a numerical interval in which the vertical jitter amount is located, where d is a positive integer, and using adjacent d row pixels as a processing unit;选择所述图像传感器的像素阵列中由第(n-1)*d+1行像素至第n*d行像素组成的各个处理单元作为所述第一帧原始图像,其中,n为从1开始的正奇数;以及Selecting each processing unit consisting of pixels from the (n-1) * d + 1th row to the pixels from the n * dth row in the pixel array of the image sensor as the first frame of the original image, where n is from 1 Positive odd number of;选择所述图像传感器的像素阵列中由第(m-1)*d+1行像素至第m*d行像素组成的各个处理单元作为所述第二帧原始图像,其中,m为从2开始的正偶数。Selecting each processing unit consisting of pixels from the (m-1) * d + 1th row to the m * dth row of the pixel array of the image sensor as the second frame of the original image, where m is from 2 Positive even number.
- 根据权利要求1所述的图像抖动补偿的方法,其中,对所述第一帧原始图像和第二帧原始图像进行图像合成,生成目标图像的步骤包括:The method for compensating image shake according to claim 1, wherein the step of generating a target image by performing image synthesis on the first frame original image and the second frame original image comprises:通过图像处理器对所述第一帧原始图像和第二帧原始图像进行图像合成,以得到原始数据格式的图像;以及Performing image synthesis on the first frame original image and the second frame original image by an image processor to obtain an image in a raw data format; and将所述原始数据格式的图像转换成目标数据格式的图像,并对所述目标数据格式的图像进行图像处理,以生成所述目标图像。Converting the image in the original data format into an image in the target data format, and performing image processing on the image in the target data format to generate the target image.
- 一种图像抖动补偿的装置,包括存储器和处理器,所述存储器上存储有计算机程序,所述计算机程序被所述处理器执行时,所述处理器执行如权利要求1至8中任一项所述的图像抖动补偿的方法。An image shake compensation device includes a memory and a processor, and a computer program is stored on the memory. When the computer program is executed by the processor, the processor executes any one of claims 1 to 8. The method for image shake compensation.
- 一种计算机可读存储介质,其上存储有一个或者多个计算机程序,所述一个或者多个计算机程序被一个或者多个处理器执行,所述一个或者多个处理器执行如权利要求1至8中任一项所述的图像抖动补偿的方法。A computer-readable storage medium having stored thereon one or more computer programs, said one or more computer programs being executed by one or more processors, said one or more processors executing as claimed in claims 1 to The method of image shake compensation according to any one of 8.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810648471.1 | 2018-06-22 | ||
CN201810648471.1A CN110636203A (en) | 2018-06-22 | 2018-06-22 | Image jitter compensation method, device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2019242757A1 true WO2019242757A1 (en) | 2019-12-26 |
Family
ID=68966729
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/092346 WO2019242757A1 (en) | 2018-06-22 | 2019-06-21 | Imaging shake compensation method and device, and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110636203A (en) |
WO (1) | WO2019242757A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114827585A (en) * | 2022-03-28 | 2022-07-29 | 深圳锐视智芯科技有限公司 | Sensor correction method, device, equipment and readable storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101345824A (en) * | 2007-07-09 | 2009-01-14 | 三星电子株式会社 | Method and apparatus for compensating hand-trembling of camera |
CN102457675A (en) * | 2010-10-27 | 2012-05-16 | 展讯通信(上海)有限公司 | Image shooting anti-shaking manner for handheld camera equipment |
US20130088610A1 (en) * | 2011-10-07 | 2013-04-11 | Samsung Electronics Co., Ltd | Photographing apparatus, motion estimating apparatus, image compensating method, motion estimating method, and computer-readable recording medium |
CN103384309A (en) * | 2012-05-02 | 2013-11-06 | 佳能株式会社 | Image capturing apparatus and control method |
CN103685918A (en) * | 2012-09-11 | 2014-03-26 | 索尼公司 | Processing apparatus, processing method, and program |
CN103763483A (en) * | 2014-01-23 | 2014-04-30 | 贝壳网际(北京)安全技术有限公司 | Method and device for shaking resistance in photo taking process of mobile terminal and mobile terminal |
-
2018
- 2018-06-22 CN CN201810648471.1A patent/CN110636203A/en not_active Withdrawn
-
2019
- 2019-06-21 WO PCT/CN2019/092346 patent/WO2019242757A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101345824A (en) * | 2007-07-09 | 2009-01-14 | 三星电子株式会社 | Method and apparatus for compensating hand-trembling of camera |
CN102457675A (en) * | 2010-10-27 | 2012-05-16 | 展讯通信(上海)有限公司 | Image shooting anti-shaking manner for handheld camera equipment |
US20130088610A1 (en) * | 2011-10-07 | 2013-04-11 | Samsung Electronics Co., Ltd | Photographing apparatus, motion estimating apparatus, image compensating method, motion estimating method, and computer-readable recording medium |
CN103384309A (en) * | 2012-05-02 | 2013-11-06 | 佳能株式会社 | Image capturing apparatus and control method |
CN103685918A (en) * | 2012-09-11 | 2014-03-26 | 索尼公司 | Processing apparatus, processing method, and program |
CN103763483A (en) * | 2014-01-23 | 2014-04-30 | 贝壳网际(北京)安全技术有限公司 | Method and device for shaking resistance in photo taking process of mobile terminal and mobile terminal |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114827585A (en) * | 2022-03-28 | 2022-07-29 | 深圳锐视智芯科技有限公司 | Sensor correction method, device, equipment and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110636203A (en) | 2019-12-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109842753B (en) | Camera anti-shake system, camera anti-shake method, electronic device and storage medium | |
CN110012224B (en) | Camera anti-shake system, camera anti-shake method, electronic device, and computer-readable storage medium | |
CN108737734B (en) | Image compensation method and apparatus, computer-readable storage medium, and electronic device | |
CN108769528B (en) | Image compensation method and apparatus, computer-readable storage medium, and electronic device | |
WO2020253618A1 (en) | Video jitter detection method and device | |
CN109951638B (en) | Camera anti-shake system, camera anti-shake method, electronic device, and computer-readable storage medium | |
US8345109B2 (en) | Imaging device and its shutter drive mode selection method | |
CN109194877B (en) | Image compensation method and apparatus, computer-readable storage medium, and electronic device | |
US10410061B2 (en) | Image capturing apparatus and method of operating the same | |
TWI395958B (en) | Defective pixel detection and correction devices, systems, and methods for detecting and correcting defective pixel | |
US8310553B2 (en) | Image capturing device, image capturing method, and storage medium having stored therein image capturing program | |
US10931901B2 (en) | Method and apparatus for selectively correcting fixed pattern noise based on pixel difference values of infrared images | |
JP5536010B2 (en) | Electronic camera, imaging control program, and imaging control method | |
US11659294B2 (en) | Image sensor, imaging apparatus, electronic device, image processing system, and signal processing method | |
US8988562B2 (en) | Image processing apparatus and image processing method | |
US20190230269A1 (en) | Monitoring camera, method of controlling monitoring camera, and non-transitory computer-readable storage medium | |
CN102572235A (en) | Imaging device, image processing method and computer program | |
CN111246100B (en) | Anti-shake parameter calibration method and device and electronic equipment | |
JP2013165483A (en) | Image processing apparatus, image capturing apparatus, and computer program | |
CN113875219A (en) | Image processing method and device, electronic equipment and computer readable storage medium | |
CN109584311B (en) | Camera calibration method, device, electronic equipment and computer-readable storage medium | |
WO2019242757A1 (en) | Imaging shake compensation method and device, and storage medium | |
US8179431B2 (en) | Compound eye photographing apparatus, control method therefor, and program | |
JP6282133B2 (en) | Imaging device, control method thereof, and control program | |
JP6980480B2 (en) | Imaging device and control method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19821713 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 07/05/2021) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19821713 Country of ref document: EP Kind code of ref document: A1 |