WO2018219267A1 - Exposure method and device, computer-readable storage medium, and mobile terminal - Google Patents

Exposure method and device, computer-readable storage medium, and mobile terminal Download PDF

Info

Publication number
WO2018219267A1
WO2018219267A1 PCT/CN2018/088820 CN2018088820W WO2018219267A1 WO 2018219267 A1 WO2018219267 A1 WO 2018219267A1 CN 2018088820 W CN2018088820 W CN 2018088820W WO 2018219267 A1 WO2018219267 A1 WO 2018219267A1
Authority
WO
WIPO (PCT)
Prior art keywords
exposure time
change
picture
time adjustment
area
Prior art date
Application number
PCT/CN2018/088820
Other languages
French (fr)
Chinese (zh)
Inventor
卓世杰
李小朋
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2018219267A1 publication Critical patent/WO2018219267A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/73Circuitry for compensating brightness variation in the scene by influencing the exposure time
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/14Picture signal circuitry for video frequency region
    • H04N5/144Movement detection

Definitions

  • Embodiments of the present application provide an exposure method, apparatus, computer readable storage medium, and mobile terminal, which can adjust an exposure time.
  • a computer readable storage medium having stored thereon a computer program, the computer program being executed by a processor to implement the following steps:
  • the exposure time adjustment value is obtained according to the position and the change speed of the change area.
  • FIG. 2 is a flow chart of an exposure method in another embodiment
  • the mobile terminal After the mobile terminal adjusts the exposure time according to the obtained exposure time adjustment value, it detects whether a shooting instruction is received within the preset time period, and if a shooting instruction is received, the shooting is performed according to the adjusted exposure time; if the shooting instruction is not received, the motion detection is adopted.
  • the algorithm detects whether there is a change area in the picture. If a change area exists in the picture, the exposure time adjustment value is acquired according to the position and the change speed of the change area, and the exposure time is re-adjusted according to the acquired exposure time adjustment value.
  • obtaining the exposure time adjustment value according to the position and the change speed of the change region in step 104 includes: obtaining an exposure time adjustment accuracy according to the position of the change region; and obtaining an exposure time adjustment value according to the exposure time adjustment accuracy and the change speed.
  • the mobile terminal After detecting the changed area in the picture by the motion detection algorithm, the mobile terminal can determine that the changed area in the picture is the main body area or the background area, and then acquire the exposure time adjustment precision corresponding to the preset change area, and adjust the accuracy and the change area according to the exposure time. Change the speed to get the exposure time adjustment value.
  • the change speed of the change region can be detected by the motion detection algorithm, and the change distance of each pixel in the change region can be obtained by the value of the pixel in the difference image, and the change time can be obtained by the time difference between the two frames.
  • the rate of change of each pixel can be obtained by varying the distance and the time of change.
  • the exposure method further includes: setting a detection accuracy to the motion detection algorithm, and detecting whether there is a change region in the screen according to the set detection accuracy.
  • the mobile terminal can also set the detection accuracy of the motion detection algorithm when detecting whether there is a change region in the picture by using the motion detection algorithm.
  • the higher the detection accuracy the smaller the difference value detectable between the current detected image and the background image, that is, the higher the detection accuracy, the smaller the change of the change region can be detected.
  • the detection precision set by the motion detection algorithm is high, the pixel value of the change region change can be detected when the pixel value is 100,000 pixels; when the detection accuracy set by the motion detection algorithm is low, the pixel value of the change region change is 50.
  • a megapixel value can be detected.
  • step 206 the motion detection algorithm detects the picture.
  • the motion detection algorithm is used to detect the picture.
  • Step 208 whether a change area is detected. It is determined whether there is a change area in the stable picture, if there is a change area, the process proceeds to step 210; if there is no change area, the process proceeds to step 212.
  • the adjustment module 306 is configured to adjust the exposure time according to the exposure time adjustment value.
  • the obtaining module 304 is further configured to acquire an exposure time adjustment accuracy according to the position of the change region; and obtain an exposure time adjustment value according to the exposure time adjustment accuracy and the change speed.
  • the mobile terminal detects the number of frames of the continuous frame picture, and the mobile terminal acquires the picture of the corresponding frame according to the preset number of consecutive frames, and detects whether the picture is stable.
  • the motion detection algorithm is enabled to detect whether there is a change area in the picture.
  • the change area refers to an area that partially changes when the picture is stable.
  • the picture acquired by the mobile terminal is a portrait.
  • the motion detection algorithm is enabled to detect whether there is a change area in the picture.
  • the motion detection algorithm detects a partial change.
  • the area that is, the area in which the arm is determined to move, is the changed area.
  • Commonly used motion detection algorithms include frame difference method, symmetric frame difference method, averaging algorithm, single Gaussian background model algorithm, and mixed Gaussian model algorithm.
  • the frame difference method includes: after the picture is stabilized, one frame image is selected as the background image, and then each frame image obtained after the motion detection algorithm is enabled is compared with the background image, and the difference image is obtained, and the difference image is obtained. The value of the pixel determines whether there is a change area in the picture.
  • the value of the pixel in the difference image obtained by the difference calculation is 0, that is, the difference image is a pure black image; when the value of the pixel in the difference image is not 0, That is, there is a difference between the acquired image and the background image, and whether there is a change region in the screen can be determined by the number and distribution of pixels that are not 0 in the difference image. For example, the number of pixel values that are not 0 in the difference image exceeds the specified value and/or the number of consecutively arranged pixels that are not 0 in the difference image exceeds a specified value, that is, there is a change region in the determination screen.
  • any frame image in the continuous frame picture when the detection picture is stable may be selected as the background image, for example, the last frame image in the continuous frame picture is used as the background image when the picture is stable.
  • the mobile terminal After detecting the changed area in the picture by the motion detection algorithm, the mobile terminal can determine that the changed area in the picture is the main body area or the background area, and then acquire the exposure time adjustment precision corresponding to the preset change area, and adjust the accuracy and the change area according to the exposure time. Change the speed to get the exposure time adjustment value.
  • the change speed of the change region can be detected by the motion detection algorithm, and the change distance of each pixel in the change region can be obtained by the value of the pixel in the difference image, and the change time can be obtained by the time difference between the two frames.
  • the rate of change of each pixel can be obtained by varying the distance and the time of change.
  • the mobile terminal can also set the detection accuracy of the motion detection algorithm when detecting whether there is a change region in the picture by using the motion detection algorithm.
  • the higher the detection accuracy the smaller the difference value detectable between the current detected image and the background image, that is, the higher the detection accuracy, the smaller the change of the change region can be detected.
  • the display unit 440 can be used to display information input by the user or information provided to the user as well as various menus of the mobile phone.
  • the display unit 440 can include a display panel 441.
  • the display panel 441 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • the touch panel 431 can cover the display panel 441. When the touch panel 431 detects a touch operation on or near the touch panel 431, it transmits to the processor 480 to determine the type of the touch event, and then the processor 480 is The type of touch event provides a corresponding visual output on display panel 441.
  • the handset 400 can also include at least one type of sensor 450, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 441 according to the brightness of the ambient light, and the proximity sensor may close the display panel 441 and/or when the mobile phone moves to the ear. Or backlight.
  • the handset 400 may also include a camera, a Bluetooth module, and the like.
  • the processor 480 included in the mobile terminal implements the following steps when executing a computer program stored in the memory:

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

The present application relates to an exposure method and device, a computer-readable storage medium and a mobile terminal. The method comprises: after a picture is stable, detecting whether there is a change area in the picture; if it is detected that there is a change area in the picture, acquiring an exposure time adjustment value according to the position and a change speed of the change area; and adjusting an exposure time according to the exposure time adjustment value. In the method, the photographed photograph can be made clearer, by detecting a change area existing in a picture, after the picture is stable, and adaptively adjusting an exposure time.

Description

曝光方法、装置、计算机可读存储介质和移动终端Exposure method, device, computer readable storage medium, and mobile terminal
相关申请的交叉引用Cross-reference to related applications
本申请要求于2017年05月31日提交中国专利局、申请号为201710400639.2、发明名称为“曝光方法、装置、计算机可读存储介质和移动终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese Patent Application filed on May 31, 2017, the Chinese Patent Application No. 201710400639.2, entitled "Exposure Method, Apparatus, Computer Readable Storage Medium, and Mobile Terminal", the entire contents of which are hereby incorporated by reference. The citations are incorporated herein by reference.
技术领域Technical field
本申请涉及计算机技术领域,特别是涉及一种曝光方法、装置、计算机可读存储介质和移动终端。The present application relates to the field of computer technology, and in particular, to an exposure method, apparatus, computer readable storage medium, and mobile terminal.
背景技术Background technique
在摄影过程中,曝光是指光线通过照相设备的快门使感光层产生潜影,对曝光后感光层进行显影,即可得到影像。其中,曝光时间的长短会直接影响影像的质感和清晰度,曝光时间短会造成影像曝光不足,曝光时间长会造成影像曝光过度。当曝光不足时,影像整体灰暗、色彩不鲜艳;当曝光过度时,当曝光过度时,影像高光部分亮白、缺乏层次感。In the process of photography, exposure means that light passes through the shutter of the photographic device to cause a latent image of the photosensitive layer, and the exposed photosensitive layer is developed to obtain an image. Among them, the length of the exposure time will directly affect the texture and clarity of the image. The short exposure time will result in insufficient image exposure, and the long exposure time will cause the image to be overexposed. When the exposure is insufficient, the image is gray and the color is not bright. When the exposure is excessive, when the exposure is excessive, the highlight portion of the image is bright and lacks layering.
发明内容Summary of the invention
本申请实施例提供一种曝光方法、装置、计算机可读存储介质和移动终端,可以调整曝光时间。Embodiments of the present application provide an exposure method, apparatus, computer readable storage medium, and mobile terminal, which can adjust an exposure time.
一种曝光方法,包括:An exposure method comprising:
在画面稳定后,检测画面中是否存在变化区域;After the picture is stable, it is detected whether there is a change area in the picture;
若检测到画面中存在变化区域,根据所述变化区域的位置和变化速度获取曝光时间调整值;及If it is detected that there is a change area in the picture, the exposure time adjustment value is obtained according to the position and the change speed of the change area; and
根据所述曝光时间调整值调整曝光时间。The exposure time is adjusted according to the exposure time adjustment value.
一种曝光装置,包括:An exposure device comprising:
检测模块,用于在画面稳定后,检测画面中是否存在变化区域;a detecting module, configured to detect whether there is a change area in the screen after the picture is stable;
获取模块,用于若检测到画面中存在变化区域,根据所述变化区域的位置和变化速度获取曝光时间调整值;及An acquiring module, configured to obtain an exposure time adjustment value according to a position and a change speed of the change area if a change area is detected in the screen; and
调整模块,用于根据所述曝光时间调整值调整曝光时间。The adjustment module is configured to adjust the exposure time according to the exposure time adjustment value.
一种移动终端,包括存储器及处理器,所述存储器中储存有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如下步骤:A mobile terminal includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the following steps:
在画面稳定后,检测画面中是否存在变化区域;After the picture is stable, it is detected whether there is a change area in the picture;
若检测到画面中存在变化区域,根据所述变化区域的位置和变化速度获取曝光时间调整值;及If it is detected that there is a change area in the picture, the exposure time adjustment value is obtained according to the position and the change speed of the change area; and
根据所述曝光时间调整值调整曝光时间。The exposure time is adjusted according to the exposure time adjustment value.
一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如下步骤:A computer readable storage medium having stored thereon a computer program, the computer program being executed by a processor to implement the following steps:
在画面稳定后,检测画面中是否存在变化区域;After the picture is stable, it is detected whether there is a change area in the picture;
若检测到画面中存在变化区域,根据所述变化区域的位置和变化速度获取曝光时间调整值;及If it is detected that there is a change area in the picture, the exposure time adjustment value is obtained according to the position and the change speed of the change area; and
根据所述曝光时间调整值调整曝光时间。The exposure time is adjusted according to the exposure time adjustment value.
附图说明DRAWINGS
为了更清楚地说明本申请实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings used in the description of the embodiments will be briefly described below. The drawings in the following description are only some embodiments of the present application, which are common in the art. For the skilled person, other drawings can be obtained from these drawings without any creative work.
图1为一个实施例中曝光方法的流程图;Figure 1 is a flow chart of an exposure method in one embodiment;
图2为另一个实施例中曝光方法的流程图;2 is a flow chart of an exposure method in another embodiment;
图3为一个实施例中曝光装置的结构框图;Figure 3 is a block diagram showing the structure of an exposure apparatus in an embodiment;
图4为与本申请实施例提供的移动终端相关的手机的部分结构的框图。4 is a block diagram showing a part of a structure of a mobile phone related to a mobile terminal provided by an embodiment of the present application.
具体实施方式detailed description
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the objects, technical solutions, and advantages of the present application more comprehensible, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the application and are not intended to be limiting.
图1为一个实施例中曝光方法的流程图。如图1所示,一种曝光方法,包括步骤102至步骤106。其中:Figure 1 is a flow chart of an exposure method in one embodiment. As shown in FIG. 1, an exposure method includes steps 102 to 106. among them:
步骤102,在画面稳定后,检测画面中是否存在变化区域。In step 102, after the picture is stabilized, it is detected whether there is a change area in the picture.
移动终端在启用拍摄程序后,若检测到获取的画面稳定,则调用运动检测算法检测画面中是否存在变化区域。其中,移动终端可通过获取当前帧画面对应的陀螺仪的数据来检测移动终端的运动状态,当前帧画面中对焦ROI(Region Of Interest,感兴趣区域)的亮度值可检测画面主体是否背光。通过连续帧画面对应的移动终端的运动状态和画面主体的背光情况可判定移动终端获取的画面是否稳定。若连续帧画面对应的移动终端内陀螺仪的数据的值在第一阈值内、对焦ROI的亮度SAD(Sum Of Absolute Differences,绝对值之和)的变化值在第二阈值内,则判定移动终端获取的画面稳定。其中,移动终端检测连续帧画面的帧数可预设,移动终端根据预设的连续帧的帧数来获取相应帧的画面并检测画面是否稳定。After detecting that the acquired picture is stable after the shooting program is enabled, the mobile terminal calls a motion detection algorithm to detect whether there is a changed area in the picture. The mobile terminal can detect the motion state of the mobile terminal by acquiring the data of the gyroscope corresponding to the current frame picture, and the brightness value of the focus of the ROI (Region Of Interest) in the current frame picture can detect whether the picture body is backlit. It is determined whether the picture acquired by the mobile terminal is stable by the motion state of the mobile terminal corresponding to the continuous frame picture and the backlight condition of the picture body. Determining the mobile terminal if the value of the data of the gyroscope in the mobile terminal corresponding to the continuous frame picture is within the first threshold and the change value of the brightness SAD (Sum Of Absolute Differences) of the focus ROI is within the second threshold The acquired picture is stable. The mobile terminal detects the number of frames of the continuous frame picture, and the mobile terminal acquires the picture of the corresponding frame according to the preset number of consecutive frames, and detects whether the picture is stable.
当移动终端检测到画面稳定后,启用运动检测算法检测画面中是否存在变化区域。其中,变化区域是指在画面稳定时部分变化的区域。例如,移动终端获取的画面为一个人像,当移动终端检测到获取的画面稳定时,启用运动检测算法检测画面中是否存在变化区域,如画面中人像的手臂运动时,运动检测算法检测出部分变化的区域,即判定手臂运动的区域为变化区域。After the mobile terminal detects that the picture is stable, the motion detection algorithm is enabled to detect whether there is a change area in the picture. Among them, the change area refers to an area that partially changes when the picture is stable. For example, the picture acquired by the mobile terminal is a portrait. When the mobile terminal detects that the acquired picture is stable, the motion detection algorithm is enabled to detect whether there is a change area in the picture. For example, when the arm of the figure moves in the picture, the motion detection algorithm detects a partial change. The area, that is, the area in which the arm is determined to move, is the changed area.
常用的运动检测算法包括帧差法、对称帧差法、平均算法、单高斯背景模型算法、混合高斯模型算法等。帧差法包括:在画面稳定后,选取一帧图像为背景图像,再将启用运动检测算法后获取的每一帧图像与背景图像进行差值计算,并获取差值图像,通过差值图像上像素点的值可判定画面中是否 存在变化区域。当获取的图像与背景图像一致时,通过差值计算获取的差值图像中像素点的值为0,即差值图像为纯黑图像;当差值图像中像素点的值不为0时,即获取的图像与背景图像存在差异,通过差值图像中不为0的像素点的个数和分布可判定画面中是否存在变化区域。例如,差值图像中不为0的像素值的个数超过指定值和/或差值图像中不为0的像素点连续排布的个数超过指定值,即判定画面中存在变化区域。其中,在选取背景图像时,可选取检测画面稳定时连续帧画面中任一帧图像作为背景图像,如画面稳定时连续帧画面中最后一帧图像作为背景图像。Commonly used motion detection algorithms include frame difference method, symmetric frame difference method, averaging algorithm, single Gaussian background model algorithm, and mixed Gaussian model algorithm. The frame difference method includes: after the picture is stabilized, one frame image is selected as the background image, and then each frame image obtained after the motion detection algorithm is enabled is compared with the background image, and the difference image is obtained, and the difference image is obtained. The value of the pixel determines whether there is a change area in the picture. When the acquired image is consistent with the background image, the value of the pixel in the difference image obtained by the difference calculation is 0, that is, the difference image is a pure black image; when the value of the pixel in the difference image is not 0, That is, there is a difference between the acquired image and the background image, and whether there is a change region in the screen can be determined by the number and distribution of pixels that are not 0 in the difference image. For example, the number of pixel values that are not 0 in the difference image exceeds the specified value and/or the number of consecutively arranged pixels that are not 0 in the difference image exceeds a specified value, that is, there is a change region in the determination screen. When the background image is selected, any frame image in the continuous frame picture when the detection picture is stable may be selected as the background image, for example, the last frame image in the continuous frame picture is used as the background image when the picture is stable.
步骤104,若检测到画面中存在变化区域,根据变化区域的位置和变化速度获取曝光时间调整值。Step 104: If it is detected that there is a change area in the picture, the exposure time adjustment value is obtained according to the position of the change area and the change speed.
当移动终端采用运动检测算法检测出画面中存在变化区域时,可根据变化区域在画面中位置和变化速度来获取曝光时间调整值。其中,变化区域的位置包括主体区域和背景区域。移动终端启用拍摄程序时,在获取到画面的对焦区域后,可采用区域生长算法检测出画面的主体区域,画面中除主体区域外的区域即为背景区域。例如,移动终端在启用拍摄程序后,获取的画面为人像,通过获取作用于移动界面的触控操作来设置的对焦区域,如人像的肚子区域,在获取到对焦区域后,通过区域生长法检测出主体区域,如以人像的肚子区域为起点通过区域生成发检测出画面的主体区域为人像。画面中除主体区域外的部分即为背景区域。根据变化区域的位置和变化速度获取曝光时间调整值包括:通过变化区域的位置是主体区域或背景区域来获取曝光时间调整精度,根据变化区域的变化速度获取曝光时间调整值。在另一个实施例中,还可根据变化区域的位置是主体区域或背景区域来获取曝光时间调整精度,根据变化区域的变化速度和变化距离获取曝光时间调整值。When the mobile terminal detects that there is a change region in the screen by using the motion detection algorithm, the exposure time adjustment value may be acquired according to the position and the change speed of the change region in the screen. The location of the change area includes a body area and a background area. When the mobile terminal enables the shooting program, after acquiring the focus area of the screen, the area growth algorithm can be used to detect the main area of the screen, and the area other than the main area in the picture is the background area. For example, after the shooting program is enabled, the mobile terminal acquires a picture as a portrait, and obtains a focus area set by a touch operation acting on the mobile interface, such as a belly area of a portrait, and after detecting the focus area, detecting by a region growth method In the main body area, the main body area in which the screen is detected is generated by the area from the belly area of the portrait as a portrait. The portion of the picture other than the body area is the background area. Obtaining the exposure time adjustment value according to the position and the change speed of the change region includes: obtaining the exposure time adjustment precision by the position of the change region being the body region or the background region, and acquiring the exposure time adjustment value according to the change speed of the change region. In another embodiment, the exposure time adjustment accuracy may be acquired according to the position of the change region being the body region or the background region, and the exposure time adjustment value is obtained according to the change speed and the change distance of the change region.
步骤106,根据曝光时间调整值调整曝光时间。 Step 106, adjusting the exposure time according to the exposure time adjustment value.
通过运动检测算法,移动终端可根据变化区域的位置和变化速度实时获取曝光时间调整值。当移动终端检测出画面中存在对焦区域时,则根据曝光时间调整值实时调整曝光时间;当移动终端检测出画面中不存在对焦区域时, 则在检测到画面中存在对焦区域后,根据曝光时间调整值实时调整曝光时间。即当画面中变化区域变化较小,画面中对焦区域未丢失时,根据获取的曝光时间调整值实时调整曝光时间;当画面中变化区域变化较大,画面中对焦区域丢失时,在检测到获取对焦区域时,再调整曝光时间。Through the motion detection algorithm, the mobile terminal can acquire the exposure time adjustment value in real time according to the position and the change speed of the changed area. When the mobile terminal detects that there is a focus area in the picture, the exposure time is adjusted in real time according to the exposure time adjustment value; when the mobile terminal detects that there is no focus area in the picture, after detecting that the focus area exists in the picture, according to the exposure time The adjustment value adjusts the exposure time in real time. That is, when the change area of the change in the picture is small, and the focus area in the picture is not lost, the exposure time is adjusted in real time according to the acquired exposure time adjustment value; when the change area in the picture changes greatly, the focus area in the picture is lost, and the acquisition is detected. Adjust the exposure time when focusing on the area.
本申请实施例中曝光方法,在检测到画面稳定时,通过运动检测算法检测画面中是否存在变化区域,当检测到画面中存在变化区域时,根据变化区域的运动状态调整曝光时间,可使得拍摄的照片更清晰,避免了传统拍摄方法中在检测到画面稳定后不再调整曝光时间,画面部分区域运动导致的拍摄画面中部分区域模糊的情况。In the exposure method of the embodiment of the present application, when the image is detected to be stable, the motion detection algorithm detects whether there is a change area in the picture, and when it is detected that there is a change area in the picture, adjusting the exposure time according to the motion state of the changed area, the shooting may be performed. The photos are clearer, avoiding the fact that in the conventional shooting method, the exposure time is not adjusted after the image is stable, and the partial area of the shooting picture caused by the movement of the partial area of the picture is blurred.
在一个实施例中,根据曝光时间调整值调整曝光时间后,上述曝光方法还包括:检测在预设时长内是否接收到拍摄指令;若未接收拍摄指令,重新检测画面中是否存在变化区域;若检测到画面中存在变化区域,根据变化区域对应的曝光时间调整值调整曝光时间。In an embodiment, after the exposure time is adjusted according to the exposure time adjustment value, the exposure method further includes: detecting whether a shooting instruction is received within a preset time period; if the shooting instruction is not received, re-detecting whether there is a change area in the screen; A change area is detected in the screen, and the exposure time is adjusted according to the exposure time adjustment value corresponding to the change area.
移动终端根据获取的曝光时间调整值调整曝光时间后,检测在预设时长内是否接收到拍摄指令,若接收到拍摄指令,根据调整的曝光时间进行拍摄;若未接收拍摄指令,则采用运动检测算法检测画面中是否存在变化区域,若检测到画面中存在变化区域,根据变化区域的位置和变化速度获取曝光时间调整值,并根据获取的曝光时间调整值重新调整曝光时间。After the mobile terminal adjusts the exposure time according to the obtained exposure time adjustment value, it detects whether a shooting instruction is received within the preset time period, and if a shooting instruction is received, the shooting is performed according to the adjusted exposure time; if the shooting instruction is not received, the motion detection is adopted. The algorithm detects whether there is a change area in the picture. If a change area exists in the picture, the exposure time adjustment value is acquired according to the position and the change speed of the change area, and the exposure time is re-adjusted according to the acquired exposure time adjustment value.
本申请实施例中曝光方法,在调整曝光时间后,检测在预设的时长内是否接收到拍摄照片的指令,接收到拍摄照片的指令则根据调整的曝光时间拍摄照片;未接收到拍摄照片的指令则继续动态调整曝光时间,根据画面中变化区域的运动情况实时调整曝光时间,保证了拍摄画面的清晰度。In the exposure method of the embodiment of the present application, after adjusting the exposure time, detecting whether an instruction to take a photo is received within a preset time period, and receiving an instruction to take a photo takes a photo according to the adjusted exposure time; The command continues to dynamically adjust the exposure time, and adjusts the exposure time in real time according to the movement of the changing area in the picture to ensure the sharpness of the shooting picture.
在一个实施例中,步骤104中根据变化区域的位置和变化速度获取曝光时间调整值包括:根据变化区域的位置获取曝光时间调整精度;根据曝光时间调整精度和变化速度获取曝光时间调整值。In one embodiment, obtaining the exposure time adjustment value according to the position and the change speed of the change region in step 104 includes: obtaining an exposure time adjustment accuracy according to the position of the change region; and obtaining an exposure time adjustment value according to the exposure time adjustment accuracy and the change speed.
移动终端通过运动检测算法检测到画面中变化区域后,可判断画面中变化区域是主体区域或背景区域,再获取预设的变化区域对应的曝光时间调整 精度,根据曝光时间调整精度和变化区域的变化速度来获取曝光时间调整值。其中,变化区域的变化速度可通过运动检测算法检测出,通过差值图像中像素点的值可获取变化区域中每个像素点的变化距离,通过两帧图像之间的时间差可获取变化时间,通过变化距离和变化时间可获取每个像素点的变化速度。其中,画面中变化区域为主体区域时,曝光时间调整精度较高;画面中变化区域为背景区域时,曝光时间调整精度较低。在变化区域为主体区域时,变化区域与对焦区域的距离越近,曝光时间调整精度越高。变化区域的变化速度越快,图像的曝光时间调整值越大,曝光时间越短。例如,在移动终端获取的画面中,主体区域为人像,对焦区域为人像的头部,在画面稳定后,若运动检测算法检测画面中的变化区域为人像的手臂,即变化区域为主体区域,曝光时间调整精度较高,根据手臂的运动速度每秒100万个像素值获取对应的曝光时间调整值为-0.005s;若运动检测算法检测出画面中变化的区域为背景区域的车辆,运动速度为每秒300万个像素值,其对应的曝光时间调整值为-0.005s。After detecting the changed area in the picture by the motion detection algorithm, the mobile terminal can determine that the changed area in the picture is the main body area or the background area, and then acquire the exposure time adjustment precision corresponding to the preset change area, and adjust the accuracy and the change area according to the exposure time. Change the speed to get the exposure time adjustment value. The change speed of the change region can be detected by the motion detection algorithm, and the change distance of each pixel in the change region can be obtained by the value of the pixel in the difference image, and the change time can be obtained by the time difference between the two frames. The rate of change of each pixel can be obtained by varying the distance and the time of change. When the change region in the screen is the main region, the exposure time adjustment accuracy is high; when the change region in the screen is the background region, the exposure time adjustment accuracy is low. When the change region is the body region, the closer the distance between the change region and the focus region is, the higher the exposure time adjustment accuracy is. The faster the change region changes, the larger the exposure time adjustment value of the image, and the shorter the exposure time. For example, in the picture acquired by the mobile terminal, the main body area is a portrait, and the focus area is a head of the portrait. After the picture is stabilized, if the motion detection algorithm detects that the changed area in the picture is the arm of the portrait, that is, the changed area is the main area. The exposure time adjustment precision is relatively high, and the corresponding exposure time adjustment value is obtained according to the movement speed of the arm of 1 million pixels per second, and the adjustment time is -0.005 s; if the motion detection algorithm detects that the changed region in the picture is the vehicle in the background area, the movement speed For a value of 3 million pixels per second, the corresponding exposure time adjustment value is -0.005s.
在一个实施例中,当变化区域为主体区域时,根据变化区域的变化速度和变化区域与对焦区域的距离来获取曝光时间调整值;当变化区域为背景区域时,不调整曝光时间。In one embodiment, when the change region is the body region, the exposure time adjustment value is obtained according to the change speed of the change region and the distance between the change region and the focus region; when the change region is the background region, the exposure time is not adjusted.
在一个实施例中,步骤102中检测画面中是否存在变化区域包括:通过运动检测算法检测画面中是否存在运动物体;若检测到存在运动物体,则确定画面中存在变化区域。In an embodiment, detecting whether there is a change region in the picture in step 102 includes: detecting, by the motion detection algorithm, whether there is a moving object in the picture; if detecting that the moving object exists, determining that there is a change area in the picture.
移动终端在检测稳定画面中是否存在变化区域时,通过运动检测算法检测画面中是否存在运动物体。其中,运动物体可包括整体运动的物体或部分运动的物体。例如,移动终端获取的画面为人像画面,运用运动检测算法检测出画面中人像整体向左或向右移动时,即检测到整体运动的物体,则画面中存在变化区域;运用运动检测算法检测出画面中人像手臂运动时,即检测到部分运动的物体,画面中存在变化区域。When the mobile terminal detects whether there is a change region in the stable picture, the motion detection algorithm detects whether there is a moving object in the picture. Among them, the moving object may include an integrally moving object or a partially moving object. For example, the picture acquired by the mobile terminal is a portrait picture, and when the motion detection algorithm detects that the whole picture moves to the left or right in the picture, that is, the object that detects the overall motion, there is a change area in the picture; the motion detection algorithm detects the motion. When the portrait arm moves in the picture, a part of the moving object is detected, and there is a change area in the picture.
在一个实施例中,上述曝光方法还包括:对运动检测算法设置检测精度, 根据设置的检测精度检测画面中是否存在变化区域。In one embodiment, the exposure method further includes: setting a detection accuracy to the motion detection algorithm, and detecting whether there is a change region in the screen according to the set detection accuracy.
移动终端在利用运动检测算法检测画面中是否存在变化区域时,还可对运动检测算法设置检测精度。检测精度越高,当前检测图像与背景图像间可检测出的差异值越小,即检测精度越高,变化区域越微小的变化越能检测出。例如,当运动检测算法设置的检测精度为高时,变化区域变化的像素值为10万像素值时才能检测出;当运动检测算法设置的检测精度为低时,变化区域变化的像素值为50万像素值时才能检测出。The mobile terminal can also set the detection accuracy of the motion detection algorithm when detecting whether there is a change region in the picture by using the motion detection algorithm. The higher the detection accuracy, the smaller the difference value detectable between the current detected image and the background image, that is, the higher the detection accuracy, the smaller the change of the change region can be detected. For example, when the detection precision set by the motion detection algorithm is high, the pixel value of the change region change can be detected when the pixel value is 100,000 pixels; when the detection accuracy set by the motion detection algorithm is low, the pixel value of the change region change is 50. A megapixel value can be detected.
本申请实施例中,对运动检测算法设置检测精度,不同精度的运动检测算法所能检测出的变化情况不同。通过设定运动检测算法的精度,可适用于不同的检测环境,提高本申请实施例中曝光方法的实用性。In the embodiment of the present application, the detection accuracy is set for the motion detection algorithm, and the motion detection algorithm with different precisions can detect different changes. By setting the precision of the motion detection algorithm, it can be applied to different detection environments, and the practicality of the exposure method in the embodiment of the present application is improved.
图2为一个实施例中曝光方法的流程图。如图2所示,一种曝光方法,包括步骤202至步骤212。其中:Figure 2 is a flow chart of an exposure method in one embodiment. As shown in FIG. 2, an exposure method includes steps 202 to 212. among them:
步骤202,启用拍摄程序。移动终端启动拍摄程序。 Step 202, enabling the shooting process. The mobile terminal starts the shooting process.
步骤204,检测画面稳定。通过获取连续帧的陀螺仪数据和对焦ROI的亮度绝对值之和判定画面是否稳定,在检测到画面稳定后,启用运动检测算法检测画面。In step 204, the detected picture is stable. The picture is determined to be stable by acquiring the sum of the absolute values of the gyro data of the continuous frame and the brightness of the focus ROI, and after detecting that the picture is stable, the motion detection algorithm is enabled to detect the picture.
步骤206,运动检测算法检测画面。采用运动检测算法检测画面。In step 206, the motion detection algorithm detects the picture. The motion detection algorithm is used to detect the picture.
步骤208,是否检测出变化区域。判断稳定画面中否存在变化区域,若存在变化区域,进入步骤210;若不存在变化区域,进入步骤212。 Step 208, whether a change area is detected. It is determined whether there is a change area in the stable picture, if there is a change area, the process proceeds to step 210; if there is no change area, the process proceeds to step 212.
步骤210,是否需要调节曝光时间。根据变化区域的位置、变化区域的变化速度判定是否需要调节曝光时间以及曝光时间调整值。若需要调节曝光时间,进入步骤214,若不需要调节曝光时间,进入步骤212。In step 210, it is necessary to adjust the exposure time. It is determined whether the exposure time and the exposure time adjustment value need to be adjusted according to the position of the change area and the change speed of the change area. If it is necessary to adjust the exposure time, the process proceeds to step 214. If it is not necessary to adjust the exposure time, the process proceeds to step 212.
步骤212,接收拍摄指令拍摄。根据接收到拍摄指令,采用当前曝光时间进行拍摄。 Step 212, receiving a shooting instruction shooting. According to the receipt of the shooting command, the current exposure time is used for shooting.
步骤214,调节曝光时间。根据获取的曝光时间调整值调整曝光时间。In step 214, the exposure time is adjusted. Adjust the exposure time based on the acquired exposure time adjustment value.
本申请实施例的方法流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的 说明,这些步骤的执行并没有严格的顺序限制,其可以以其他的顺序执行。而且,本申请实施例的方法流程图中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,其执行顺序也不必然是依次进行,而是可以与其他步骤或者其他步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。The steps in the method flowchart of the embodiment of the present application are sequentially displayed in accordance with the indication of the arrow, but the steps are not necessarily performed in the order indicated by the arrow. Except as explicitly stated herein, the execution of these steps is not strictly limited, and may be performed in other sequences. Moreover, at least some of the steps in the method flowchart of the embodiment of the present application may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be executed at different times. The order of execution is not necessarily performed sequentially, but may be performed alternately or alternately with at least a portion of other steps or sub-steps or stages of other steps.
图3为一个实施例中曝光装置的结构框图。如图3所示,一种曝光装置,包括检测模块302、获取模块304和调整模块306。Fig. 3 is a block diagram showing the structure of an exposure apparatus in an embodiment. As shown in FIG. 3, an exposure apparatus includes a detection module 302, an acquisition module 304, and an adjustment module 306.
检测模块302,用于在画面稳定后,检测画面中是否存在变化区域。The detecting module 302 is configured to detect whether there is a change area in the screen after the screen is stable.
获取模块304,用于若检测到画面中存在变化区域,根据变化区域的位置和变化速度获取曝光时间调整值。The obtaining module 304 is configured to obtain an exposure time adjustment value according to the position and the change speed of the change area if it is detected that there is a change area in the screen.
调整模块306,用于根据曝光时间调整值调整曝光时间。The adjustment module 306 is configured to adjust the exposure time according to the exposure time adjustment value.
在一个实施例中,检测模块302还用于检测在预设时长内是否接收到拍摄指令;若未接收拍摄指令,重新检测画面中是否存在变化区域;调整模块还用于若再次检测到画面中存在变化区域,根据再次检测到的变化区域对应的曝光时间调整值调整曝光时间。In an embodiment, the detecting module 302 is further configured to detect whether a shooting instruction is received within a preset time period; if the shooting instruction is not received, re-detecting whether there is a change area in the screen; the adjusting module is further configured to: if the image is detected again There is a change area, and the exposure time is adjusted according to the exposure time adjustment value corresponding to the change area detected again.
在一个实施例中,检测模块302还用于根据设置的检测精度检测画面中是否存在变化区域。In an embodiment, the detecting module 302 is further configured to detect whether there is a change region in the screen according to the set detection precision.
在一个实施例中,获取模块304还用于根据变化区域的位置获取曝光时间调整精度;根据曝光时间调整精度和变化速度获取曝光时间调整值。In an embodiment, the obtaining module 304 is further configured to acquire an exposure time adjustment accuracy according to the position of the change region; and obtain an exposure time adjustment value according to the exposure time adjustment accuracy and the change speed.
在一个实施例中,检测模块302还用于通过运动检测算法检测画面中是否存在运动物体;若检测到存在运动物体,则确定画面中存在变化区域。In one embodiment, the detecting module 302 is further configured to detect, by the motion detection algorithm, whether there is a moving object in the picture; if it is detected that the moving object exists, it is determined that there is a changed area in the picture.
上述曝光装置中各个模块的划分仅用于举例说明,在其他实施例中,可将曝光装置按照需要划分为不同的模块,以完成上述曝光装置的全部或部分功能。The division of each module in the above exposure apparatus is for illustrative purposes only. In other embodiments, the exposure apparatus may be divided into different modules as needed to perform all or part of the functions of the exposure apparatus described above.
上述曝光装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于服务器中的处理器中,也可以以软件形式存储于服务器中的存储器中,以便于处理器调用执行以上各个模 块对应的操作。如在本申请中所使用的,术语“组件”、“模块”和“系统”等旨在表示计算机相关的实体,它可以是硬件、硬件和软件的组合、软件、或者执行中的软件。例如,组件可以是但不限于是,在处理器上运行的进程、处理器、对象、可执行码、执行的线程、程序和/或计算机。作为说明,运行在服务器上的应用程序和服务器都可以是组件。一个或多个组件可以驻留在进程和/或执行的线程中,并且组件可以位于一个计算机内和/或分布在两个或更多的计算机之间。Each of the above-described exposure devices may be implemented in whole or in part by software, hardware, and combinations thereof. Each of the above modules may be embedded in a hardware form or independent of a processor in the server, or may be stored in a software in a memory in the server, so that the processor calls to perform operations corresponding to the above modules. As used in this application, the terms "component", "module" and "system" and the like are intended to mean a computer-related entity, which may be hardware, a combination of hardware and software, software, or software in execution. For example, a component can be, but is not limited to being, a process running on a processor, a processor, an object, an executable, a thread of execution, a program, and/or a computer. By way of illustration, both an application running on a server and a server can be a component. One or more components can reside within a process and/or executed thread, and the components can be located within one computer and/or distributed between two or more computers.
本申请实施例还提供了一种计算机可读存储介质。一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现以下步骤:The embodiment of the present application also provides a computer readable storage medium. A computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements the following steps:
(1)在画面稳定后,检测画面中是否存在变化区域。(1) After the screen is stable, check if there is a change area in the screen.
移动终端在启用拍摄程序后,若检测到获取的画面稳定,则调用运动检测算法检测画面中是否存在变化区域。其中,移动终端可通过获取当前帧画面对应的陀螺仪的数据来检测移动终端的运动状态,当前帧画面中对焦ROI的亮度值可检测画面主体是否背光。通过连续帧画面对应的移动终端的运动状态和画面主体的背光情况可判定移动终端获取的画面是否稳定。若连续帧画面对应的移动终端内陀螺仪的数据的值在第一阈值内、对焦ROI的亮度SAD的变化值在第二阈值内,则判定移动终端获取的画面稳定。其中,移动终端检测连续帧画面的帧数可预设,移动终端根据预设的连续帧的帧数来获取相应帧的画面并检测画面是否稳定。After detecting that the acquired picture is stable after the shooting program is enabled, the mobile terminal calls a motion detection algorithm to detect whether there is a changed area in the picture. The mobile terminal can detect the motion state of the mobile terminal by acquiring the data of the gyroscope corresponding to the current frame picture, and the brightness value of the focus ROI in the current frame picture can detect whether the picture body is backlit. It is determined whether the picture acquired by the mobile terminal is stable by the motion state of the mobile terminal corresponding to the continuous frame picture and the backlight condition of the picture body. If the value of the data of the gyro in the mobile terminal corresponding to the continuous frame picture is within the first threshold and the change value of the brightness SAD of the focus ROI is within the second threshold, it is determined that the picture acquired by the mobile terminal is stable. The mobile terminal detects the number of frames of the continuous frame picture, and the mobile terminal acquires the picture of the corresponding frame according to the preset number of consecutive frames, and detects whether the picture is stable.
当移动终端检测到画面稳定后,启用运动检测算法检测画面中是否存在变化区域。其中,变化区域是指在画面稳定时部分变化的区域。例如,移动终端获取的画面为一个人像,当移动终端检测到获取的画面稳定时,启用运动检测算法检测画面中是否存在变化区域,如画面中人像的手臂运动时,运动检测算法检测出部分变化的区域,即判定手臂运动的区域为变化区域。After the mobile terminal detects that the picture is stable, the motion detection algorithm is enabled to detect whether there is a change area in the picture. Among them, the change area refers to an area that partially changes when the picture is stable. For example, the picture acquired by the mobile terminal is a portrait. When the mobile terminal detects that the acquired picture is stable, the motion detection algorithm is enabled to detect whether there is a change area in the picture. For example, when the arm of the figure moves in the picture, the motion detection algorithm detects a partial change. The area, that is, the area in which the arm is determined to move, is the changed area.
常用的运动检测算法包括帧差法、对称帧差法、平均算法、单高斯背景模型算法、混合高斯模型算法等。帧差法包括:在画面稳定后,选取一帧图像为背景图像,再将启用运动检测算法后获取的每一帧图像与背景图像进行 差值计算,并获取差值图像,通过差值图像上像素点的值可判定画面中是否存在变化区域。当获取的图像与背景图像一致时,通过差值计算获取的差值图像中像素点的值为0,即差值图像为纯黑图像;当差值图像中像素点的值不为0时,即获取的图像与背景图像存在差异,通过差值图像中不为0的像素点的个数和分布可判定画面中是否存在变化区域。例如,差值图像中不为0的像素值的个数超过指定值和/或差值图像中不为0的像素点连续排布的个数超过指定值,即判定画面中存在变化区域。其中,在选取背景图像时,可选取检测画面稳定时连续帧画面中任一帧图像作为背景图像,如画面稳定时连续帧画面中最后一帧图像作为背景图像。Commonly used motion detection algorithms include frame difference method, symmetric frame difference method, averaging algorithm, single Gaussian background model algorithm, and mixed Gaussian model algorithm. The frame difference method includes: after the picture is stabilized, one frame image is selected as the background image, and then each frame image obtained after the motion detection algorithm is enabled is compared with the background image, and the difference image is obtained, and the difference image is obtained. The value of the pixel determines whether there is a change area in the picture. When the acquired image is consistent with the background image, the value of the pixel in the difference image obtained by the difference calculation is 0, that is, the difference image is a pure black image; when the value of the pixel in the difference image is not 0, That is, there is a difference between the acquired image and the background image, and whether there is a change region in the screen can be determined by the number and distribution of pixels that are not 0 in the difference image. For example, the number of pixel values that are not 0 in the difference image exceeds the specified value and/or the number of consecutively arranged pixels that are not 0 in the difference image exceeds a specified value, that is, there is a change region in the determination screen. When the background image is selected, any frame image in the continuous frame picture when the detection picture is stable may be selected as the background image, for example, the last frame image in the continuous frame picture is used as the background image when the picture is stable.
(2)若检测到画面中存在变化区域,根据变化区域的位置和变化速度获取曝光时间调整值。(2) If a change region is detected in the screen, the exposure time adjustment value is acquired according to the position of the change region and the change speed.
当移动终端采用运动检测算法检测出画面中存在变化区域时,可根据变化区域在画面中位置和变化速度来获取曝光时间调整值。其中,变化区域的位置包括主体区域和背景区域。移动终端启用拍摄程序时,在获取到画面的对焦区域后,可采用区域生长算法检测出画面的主体区域,画面中除主体区域外的区域即为背景区域。例如,移动终端在启用拍摄程序后,获取的画面为人像,通过获取作用于移动界面的触控操作来设置的对焦区域,如人像的肚子区域,在获取到对焦区域后,通过区域生长法检测出主体区域,如以人像的肚子区域为起点通过区域生成发检测出画面的主体区域为人像。画面中除主体区域外的部分即为背景区域。根据变化区域的位置和变化速度获取曝光时间调整值包括:通过变化区域的位置是主体区域或背景区域来获取曝光时间调整精度,根据变化区域的变化速度获取曝光时间调整值。在另一个实施例中,还可根据变化区域的位置是主体区域或背景区域来获取曝光时间调整精度,根据变化区域的变化速度和变化距离获取曝光时间调整值。When the mobile terminal detects that there is a change region in the screen by using the motion detection algorithm, the exposure time adjustment value may be acquired according to the position and the change speed of the change region in the screen. The location of the change area includes a body area and a background area. When the mobile terminal enables the shooting program, after acquiring the focus area of the screen, the area growth algorithm can be used to detect the main area of the screen, and the area other than the main area in the picture is the background area. For example, after the shooting program is enabled, the mobile terminal acquires a picture as a portrait, and obtains a focus area set by a touch operation acting on the mobile interface, such as a belly area of a portrait, and after detecting the focus area, detecting by a region growth method In the main body area, the main body area in which the screen is detected is generated by the area from the belly area of the portrait as a portrait. The portion of the picture other than the body area is the background area. Obtaining the exposure time adjustment value according to the position and the change speed of the change region includes: obtaining the exposure time adjustment precision by the position of the change region being the body region or the background region, and acquiring the exposure time adjustment value according to the change speed of the change region. In another embodiment, the exposure time adjustment accuracy may be acquired according to the position of the change region being the body region or the background region, and the exposure time adjustment value is obtained according to the change speed and the change distance of the change region.
(3)根据曝光时间调整值调整曝光时间。(3) Adjust the exposure time according to the exposure time adjustment value.
通过运动检测算法,移动终端可根据变化区域的位置和变化速度实时获取曝光时间调整值。当移动终端检测出画面中存在对焦区域时,则根据曝光 时间调整值实时调整曝光时间;当移动终端检测出画面中不存在对焦区域时,则在检测到画面中存在对焦区域后,根据曝光时间调整值实时调整曝光时间。即当画面中变化区域变化较小,画面中对焦区域未丢失时,根据获取的曝光时间调整值实时调整曝光时间;当画面中变化区域变化较大,画面中对焦区域丢失时,在检测到获取对焦区域时,再调整曝光时间。Through the motion detection algorithm, the mobile terminal can acquire the exposure time adjustment value in real time according to the position and the change speed of the changed area. When the mobile terminal detects that there is a focus area in the screen, the exposure time is adjusted in real time according to the exposure time adjustment value; when the mobile terminal detects that there is no focus area in the picture, after detecting that the focus area exists in the picture, according to the exposure time The adjustment value adjusts the exposure time in real time. That is, when the change area of the change in the picture is small, and the focus area in the picture is not lost, the exposure time is adjusted in real time according to the acquired exposure time adjustment value; when the change area in the picture changes greatly, the focus area in the picture is lost, and the acquisition is detected. Adjust the exposure time when focusing on the area.
在一个实施例中,根据曝光时间调整值调整曝光时间后,上述曝光方法还包括:检测在预设时长内是否接收到拍摄指令;若未接收拍摄指令,重新检测画面中是否存在变化区域;若检测到画面中存在变化区域,根据变化区域对应的曝光时间调整值调整曝光时间。In an embodiment, after the exposure time is adjusted according to the exposure time adjustment value, the exposure method further includes: detecting whether a shooting instruction is received within a preset time period; if the shooting instruction is not received, re-detecting whether there is a change area in the screen; A change area is detected in the screen, and the exposure time is adjusted according to the exposure time adjustment value corresponding to the change area.
移动终端根据获取的曝光时间调整值调整曝光时间后,检测在预设时长内是否接收到拍摄指令,若接收到拍摄指令,根据调整的曝光时间进行拍摄;若未接收拍摄指令,则采用运动检测算法检测画面中是否存在变化区域,若检测到画面中存在变化区域,根据变化区域的位置和变化速度获取曝光时间调整值,并根据获取的曝光时间调整值重新调整曝光时间。After the mobile terminal adjusts the exposure time according to the obtained exposure time adjustment value, it detects whether a shooting instruction is received within the preset time period, and if a shooting instruction is received, the shooting is performed according to the adjusted exposure time; if the shooting instruction is not received, the motion detection is adopted. The algorithm detects whether there is a change area in the picture. If a change area exists in the picture, the exposure time adjustment value is acquired according to the position and the change speed of the change area, and the exposure time is re-adjusted according to the acquired exposure time adjustment value.
在一个实施例中,步骤(2)中根据变化区域的位置和变化速度获取曝光时间调整值包括:根据变化区域的位置获取曝光时间调整精度;根据曝光时间调整精度和变化速度获取曝光时间调整值。In an embodiment, the obtaining the exposure time adjustment value according to the position and the change speed of the change region in the step (2) comprises: obtaining the exposure time adjustment accuracy according to the position of the change region; and obtaining the exposure time adjustment value according to the exposure time adjustment accuracy and the change speed. .
移动终端通过运动检测算法检测到画面中变化区域后,可判断画面中变化区域是主体区域或背景区域,再获取预设的变化区域对应的曝光时间调整精度,根据曝光时间调整精度和变化区域的变化速度来获取曝光时间调整值。其中,变化区域的变化速度可通过运动检测算法检测出,通过差值图像中像素点的值可获取变化区域中每个像素点的变化距离,通过两帧图像之间的时间差可获取变化时间,通过变化距离和变化时间可获取每个像素点的变化速度。其中,画面中变化区域为主体区域时,曝光时间调整精度较高;画面中变化区域为背景区域时,曝光时间调整精度较低。在变化区域为主体区域时,变化区域与对焦区域的距离越近,曝光时间调整精度越高。变化区域的变化速度越快,图像的曝光时间调整值越大,曝光时间越短。After detecting the changed area in the picture by the motion detection algorithm, the mobile terminal can determine that the changed area in the picture is the main body area or the background area, and then acquire the exposure time adjustment precision corresponding to the preset change area, and adjust the accuracy and the change area according to the exposure time. Change the speed to get the exposure time adjustment value. The change speed of the change region can be detected by the motion detection algorithm, and the change distance of each pixel in the change region can be obtained by the value of the pixel in the difference image, and the change time can be obtained by the time difference between the two frames. The rate of change of each pixel can be obtained by varying the distance and the time of change. When the change region in the screen is the main region, the exposure time adjustment accuracy is high; when the change region in the screen is the background region, the exposure time adjustment accuracy is low. When the change region is the body region, the closer the distance between the change region and the focus region is, the higher the exposure time adjustment accuracy is. The faster the change region changes, the larger the exposure time adjustment value of the image, and the shorter the exposure time.
在一个实施例中,当变化区域为主体区域时,根据变化区域的变化速度和变化区域与对焦区域的距离来获取曝光时间调整值;当变化区域为背景区域时,不调整曝光时间。In one embodiment, when the change region is the body region, the exposure time adjustment value is obtained according to the change speed of the change region and the distance between the change region and the focus region; when the change region is the background region, the exposure time is not adjusted.
在一个实施例中,步骤(1)中检测画面中是否存在变化区域包括:通过运动检测算法检测画面中是否存在运动物体;若检测到存在运动物体,则确定画面中存在变化区域。In an embodiment, detecting whether there is a change region in the picture in step (1) comprises: detecting, by the motion detection algorithm, whether there is a moving object in the picture; if detecting that the moving object exists, determining that there is a change area in the picture.
移动终端在检测稳定画面中是否存在变化区域时,通过运动检测算法检测画面中是否存在运动物体。其中,运动物体可包括整体运动的物体或部分运动的物体。When the mobile terminal detects whether there is a change region in the stable picture, the motion detection algorithm detects whether there is a moving object in the picture. Among them, the moving object may include an integrally moving object or a partially moving object.
在一个实施例中,上述曝光方法还包括:对运动检测算法设置检测精度,根据设置的检测精度检测画面中是否存在变化区域。In one embodiment, the exposure method further includes: setting a detection accuracy to the motion detection algorithm, and detecting whether there is a change region in the screen according to the set detection accuracy.
移动终端在利用运动检测算法检测画面中是否存在变化区域时,还可对运动检测算法设置检测精度。检测精度越高,当前检测图像与背景图像间可检测出的差异值越小,即检测精度越高,变化区域越微小的变化越能检测出。The mobile terminal can also set the detection accuracy of the motion detection algorithm when detecting whether there is a change region in the picture by using the motion detection algorithm. The higher the detection accuracy, the smaller the difference value detectable between the current detected image and the background image, that is, the higher the detection accuracy, the smaller the change of the change region can be detected.
本申请实施例还提供了一种移动终端。如图3所示,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请实施例方法部分。该移动终端可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑、穿戴式设备等任意终端设备,以移动终端为手机为例:The embodiment of the present application further provides a mobile terminal. As shown in FIG. 3, for the convenience of description, only the parts related to the embodiments of the present application are shown. For the specific technical details not disclosed, please refer to the method part of the embodiment of the present application. The mobile terminal can be any mobile device, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), an on-board computer, a wearable device, or the like, and the mobile terminal is used as a mobile phone as an example. :
图4为与本申请实施例提供的移动终端相关的手机的部分结构的框图。参考图4,手机包括:射频(Radio Frequency,RF)电路410、存储器420、输入单元430、显示单元440、传感器450、音频电路460、无线保真(wireless fidelity,WiFi)模块470、处理器480、以及电源490等部件。本领域技术人员可以理解,图4所示的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。4 is a block diagram showing a part of a structure of a mobile phone related to a mobile terminal provided by an embodiment of the present application. Referring to FIG. 4, the mobile phone includes: a radio frequency (RF) circuit 410, a memory 420, an input unit 430, a display unit 440, a sensor 450, an audio circuit 460, a wireless fidelity (WiFi) module 470, and a processor 480. And power supply 490 and other components. It will be understood by those skilled in the art that the structure of the mobile phone shown in FIG. 4 does not constitute a limitation to the mobile phone, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements.
其中,RF电路410可用于收发信息或通话过程中,信号的接收和发 送,可将基站的下行信息接收后,给处理器480处理;也可以将上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路410还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE))、电子邮件、短消息服务(Short Messaging Service,SMS)等。The RF circuit 410 can be used for receiving and transmitting information during the transmission and reception of information or during the call. The downlink information of the base station can be received and processed by the processor 480. The uplink data can also be sent to the base station. Generally, RF circuits include, but are not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, RF circuitry 410 can also communicate with the network and other devices via wireless communication. The above wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code Division). Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), e-mail, Short Messaging Service (SMS), and the like.
存储器420可用于存储软件程序以及模块,处理器480通过运行存储在存储器420的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器420可主要包括程序存储区和数据存储区,其中,程序存储区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能的应用程序、图像播放功能的应用程序等)等;数据存储区可存储根据手机的使用所创建的数据(比如音频数据、通讯录等)等。此外,存储器420可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 420 can be used to store software programs and modules, and the processor 480 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 420. The memory 420 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as an application of a sound playing function, an application of an image playing function, etc.); The data storage area can store data (such as audio data, address book, etc.) created according to the use of the mobile phone. Moreover, memory 420 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
输入单元430可用于接收输入的数字或字符信息,以及产生与手机400的用户设置以及功能控制有关的键信号输入。具体地,输入单元430可包括触控面板431以及其他输入设备432。触控面板431,也可称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板431上或在触控面板431附近的操作),并根据预先设定的程式驱动相应的连接装置。在一个实施例中,触控面板431可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标, 再送给处理器480,并能接收处理器480发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板431。除了触控面板431,输入单元430还可以包括其他输入设备432。具体地,其他输入设备432可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)等中的一种或多种。The input unit 430 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the handset 400. Specifically, the input unit 430 may include a touch panel 431 and other input devices 432. The touch panel 431, which may also be referred to as a touch screen, can collect touch operations on or near the user (such as a user using a finger, a stylus, or the like on the touch panel 431 or near the touch panel 431. Operation) and drive the corresponding connection device according to a preset program. In one embodiment, the touch panel 431 can include two portions of a touch detection device and a touch controller. Wherein, the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information. The processor 480 is provided and can receive commands from the processor 480 and execute them. In addition, the touch panel 431 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 431, the input unit 430 may also include other input devices 432. In particular, other input devices 432 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.).
显示单元440可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元440可包括显示面板441。在一个实施例中,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板441。在一个实施例中,触控面板431可覆盖显示面板441,当触控面板431检测到在其上或附近的触摸操作后,传送给处理器480以确定触摸事件的类型,随后处理器480根据触摸事件的类型在显示面板441上提供相应的视觉输出。虽然在图4中,触控面板431与显示面板441是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板431与显示面板441集成而实现手机的输入和输出功能。The display unit 440 can be used to display information input by the user or information provided to the user as well as various menus of the mobile phone. The display unit 440 can include a display panel 441. In one embodiment, the display panel 441 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like. In one embodiment, the touch panel 431 can cover the display panel 441. When the touch panel 431 detects a touch operation on or near the touch panel 431, it transmits to the processor 480 to determine the type of the touch event, and then the processor 480 is The type of touch event provides a corresponding visual output on display panel 441. Although the touch panel 431 and the display panel 441 are used as two independent components to implement the input and input functions of the mobile phone in FIG. 4, in some embodiments, the touch panel 431 and the display panel 441 may be integrated. Realize the input and output functions of the phone.
手机400还可包括至少一种传感器450,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板441的亮度,接近传感器可在手机移动到耳边时,关闭显示面板441和/或背光。运动传感器可包括加速度传感器,通过加速度传感器可检测各个方向上加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换)、振动识别相关功能(比如计步器、敲击)等;此外,手机还可配置陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器等。The handset 400 can also include at least one type of sensor 450, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 441 according to the brightness of the ambient light, and the proximity sensor may close the display panel 441 and/or when the mobile phone moves to the ear. Or backlight. The motion sensor may include an acceleration sensor, and the acceleration sensor can detect the magnitude of the acceleration in each direction, and the magnitude and direction of the gravity can be detected at rest, and can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching), and vibration recognition related functions (such as Pedometer, tapping, etc.; in addition, the phone can also be equipped with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors.
音频电路460、扬声器461和传声器462可提供用户与手机之间的音频接口。音频电路460可将接收到的音频数据转换后的电信号,传输到扬声器461,由扬声器461转换为声音信号输出;另一方面,传声器462将 收集的声音信号转换为电信号,由音频电路460接收后转换为音频数据,再将音频数据输出处理器480处理后,经RF电路410可以发送给另一手机,或者将音频数据输出至存储器420以便后续处理。 Audio circuitry 460, speaker 461, and microphone 462 can provide an audio interface between the user and the handset. The audio circuit 460 can transmit the converted electrical data of the received audio data to the speaker 461 for conversion to the sound signal output by the speaker 461; on the other hand, the microphone 462 converts the collected sound signal into an electrical signal by the audio circuit 460. After receiving, it is converted into audio data, and then processed by the audio data output processor 480, transmitted to another mobile phone via the RF circuit 410, or outputted to the memory 420 for subsequent processing.
WiFi属于短距离无线传输技术,手机通过WiFi模块470可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图4示出了WiFi模块470,但是可以理解的是,其并不属于手机400的必须构成,可以根据需要而省略。WiFi is a short-range wireless transmission technology, and the mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 470, which provides users with wireless broadband Internet access. Although FIG. 4 shows the WiFi module 470, it can be understood that it does not belong to the essential configuration of the mobile phone 400 and can be omitted as needed.
处理器480是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器420内的软件程序和/或模块,以及调用存储在存储器420内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。在一个实施例中,处理器480可包括一个或多个处理单元。在一个实施例中,处理器480可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等;调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器480中。The processor 480 is the control center of the handset, and connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 420, and invoking data stored in the memory 420, executing The phone's various functions and processing data, so that the overall monitoring of the phone. In one embodiment, processor 480 can include one or more processing units. In one embodiment, processor 480 can integrate an application processor and a modem processor, where the application processor primarily processes an operating system, user interface, applications, and the like; the modem processor primarily processes wireless communications. It can be understood that the above modem processor may not be integrated into the processor 480.
手机400还包括给各个部件供电的电源490(比如电池),优选的,电源可以通过电源管理系统与处理器480逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The handset 400 also includes a power source 490 (such as a battery) that supplies power to the various components. Preferably, the power source can be logically coupled to the processor 480 via a power management system to manage functions such as charging, discharging, and power management through the power management system.
在一个实施例中,手机400还可以包括摄像头、蓝牙模块等。In one embodiment, the handset 400 may also include a camera, a Bluetooth module, and the like.
在本申请实施例中,该移动终端所包括的处理器480执行存储在存储器上的计算机程序时实现以下步骤:In the embodiment of the present application, the processor 480 included in the mobile terminal implements the following steps when executing a computer program stored in the memory:
(1)在画面稳定后,检测画面中是否存在变化区域。(1) After the screen is stable, check if there is a change area in the screen.
移动终端在启用拍摄程序后,若检测到获取的画面稳定,则调用运动检测算法检测画面中是否存在变化区域。其中,移动终端可通过获取当前帧画面对应的陀螺仪的数据来检测移动终端的运动状态,当前帧画面中对焦ROI的亮度值可检测画面主体是否背光。通过连续帧画面对应的移动终端的运动状态和画面主体的背光情况可判定移动终端获取的画面是否稳定。若连续帧 画面对应的移动终端内陀螺仪的数据的值在第一阈值内、对焦ROI的亮度SAD的变化值在第二阈值内,则判定移动终端获取的画面稳定。其中,移动终端检测连续帧画面的帧数可预设,移动终端根据预设的连续帧的帧数来获取相应帧的画面并检测画面是否稳定。After detecting that the acquired picture is stable after the shooting program is enabled, the mobile terminal calls a motion detection algorithm to detect whether there is a changed area in the picture. The mobile terminal can detect the motion state of the mobile terminal by acquiring the data of the gyroscope corresponding to the current frame picture, and the brightness value of the focus ROI in the current frame picture can detect whether the picture body is backlit. It is determined whether the picture acquired by the mobile terminal is stable by the motion state of the mobile terminal corresponding to the continuous frame picture and the backlight condition of the picture body. If the value of the data of the gyro in the mobile terminal corresponding to the continuous frame picture is within the first threshold and the change value of the brightness SAD of the focus ROI is within the second threshold, it is determined that the picture acquired by the mobile terminal is stable. The mobile terminal detects the number of frames of the continuous frame picture, and the mobile terminal acquires the picture of the corresponding frame according to the preset number of consecutive frames, and detects whether the picture is stable.
当移动终端检测到画面稳定后,启用运动检测算法检测画面中是否存在变化区域。其中,变化区域是指在画面稳定时部分变化的区域。例如,移动终端获取的画面为一个人像,当移动终端检测到获取的画面稳定时,启用运动检测算法检测画面中是否存在变化区域,如画面中人像的手臂运动时,运动检测算法检测出部分变化的区域,即判定手臂运动的区域为变化区域。After the mobile terminal detects that the picture is stable, the motion detection algorithm is enabled to detect whether there is a change area in the picture. Among them, the change area refers to an area that partially changes when the picture is stable. For example, the picture acquired by the mobile terminal is a portrait. When the mobile terminal detects that the acquired picture is stable, the motion detection algorithm is enabled to detect whether there is a change area in the picture. For example, when the arm of the figure moves in the picture, the motion detection algorithm detects a partial change. The area, that is, the area in which the arm is determined to move, is the changed area.
常用的运动检测算法包括帧差法、对称帧差法、平均算法、单高斯背景模型算法、混合高斯模型算法等。帧差法包括:在画面稳定后,选取一帧图像为背景图像,再将启用运动检测算法后获取的每一帧图像与背景图像进行差值计算,并获取差值图像,通过差值图像上像素点的值可判定画面中是否存在变化区域。当获取的图像与背景图像一致时,通过差值计算获取的差值图像中像素点的值为0,即差值图像为纯黑图像;当差值图像中像素点的值不为0时,即获取的图像与背景图像存在差异,通过差值图像中不为0的像素点的个数和分布可判定画面中是否存在变化区域。例如,差值图像中不为0的像素值的个数超过指定值和/或差值图像中不为0的像素点连续排布的个数超过指定值,即判定画面中存在变化区域。其中,在选取背景图像时,可选取检测画面稳定时连续帧画面中任一帧图像作为背景图像,如画面稳定时连续帧画面中最后一帧图像作为背景图像。Commonly used motion detection algorithms include frame difference method, symmetric frame difference method, averaging algorithm, single Gaussian background model algorithm, and mixed Gaussian model algorithm. The frame difference method includes: after the picture is stabilized, one frame image is selected as the background image, and then each frame image obtained after the motion detection algorithm is enabled is compared with the background image, and the difference image is obtained, and the difference image is obtained. The value of the pixel determines whether there is a change area in the picture. When the acquired image is consistent with the background image, the value of the pixel in the difference image obtained by the difference calculation is 0, that is, the difference image is a pure black image; when the value of the pixel in the difference image is not 0, That is, there is a difference between the acquired image and the background image, and whether there is a change region in the screen can be determined by the number and distribution of pixels that are not 0 in the difference image. For example, the number of pixel values that are not 0 in the difference image exceeds the specified value and/or the number of consecutively arranged pixels that are not 0 in the difference image exceeds a specified value, that is, there is a change region in the determination screen. When the background image is selected, any frame image in the continuous frame picture when the detection picture is stable may be selected as the background image, for example, the last frame image in the continuous frame picture is used as the background image when the picture is stable.
(2)若检测到画面中存在变化区域,根据变化区域的位置和变化速度获取曝光时间调整值。(2) If a change region is detected in the screen, the exposure time adjustment value is acquired according to the position of the change region and the change speed.
当移动终端采用运动检测算法检测出画面中存在变化区域时,可根据变化区域在画面中位置和变化速度来获取曝光时间调整值。其中,变化区域的位置包括主体区域和背景区域。移动终端启用拍摄程序时,在获取到画面的对焦区域后,可采用区域生长算法检测出画面的主体区域,画面中除主体区 域外的区域即为背景区域。例如,移动终端在启用拍摄程序后,获取的画面为人像,通过获取作用于移动界面的触控操作来设置的对焦区域,如人像的肚子区域,在获取到对焦区域后,通过区域生长法检测出主体区域,如以人像的肚子区域为起点通过区域生成发检测出画面的主体区域为人像。画面中除主体区域外的部分即为背景区域。根据变化区域的位置和变化速度获取曝光时间调整值包括:通过变化区域的位置是主体区域或背景区域来获取曝光时间调整精度,根据变化区域的变化速度获取曝光时间调整值。在另一个实施例中,还可根据变化区域的位置是主体区域或背景区域来获取曝光时间调整精度,根据变化区域的变化速度和变化距离获取曝光时间调整值。When the mobile terminal detects that there is a change region in the screen by using the motion detection algorithm, the exposure time adjustment value may be acquired according to the position and the change speed of the change region in the screen. The location of the change area includes a body area and a background area. When the mobile terminal enables the shooting program, after acquiring the focus area of the screen, the area growth algorithm can be detected by the area growing algorithm, and the area other than the main area in the picture is the background area. For example, after the shooting program is enabled, the mobile terminal acquires a picture as a portrait, and obtains a focus area set by a touch operation acting on the mobile interface, such as a belly area of a portrait, and after detecting the focus area, detecting by a region growth method In the main body area, the main body area in which the screen is detected is generated by the area from the belly area of the portrait as a portrait. The portion of the picture other than the body area is the background area. Obtaining the exposure time adjustment value according to the position and the change speed of the change region includes: obtaining the exposure time adjustment precision by the position of the change region being the body region or the background region, and acquiring the exposure time adjustment value according to the change speed of the change region. In another embodiment, the exposure time adjustment accuracy may be acquired according to the position of the change region being the body region or the background region, and the exposure time adjustment value is obtained according to the change speed and the change distance of the change region.
(3)根据曝光时间调整值调整曝光时间。(3) Adjust the exposure time according to the exposure time adjustment value.
通过运动检测算法,移动终端可根据变化区域的位置和变化速度实时获取曝光时间调整值。当移动终端检测出画面中存在对焦区域时,则根据曝光时间调整值实时调整曝光时间;当移动终端检测出画面中不存在对焦区域时,则在检测到画面中存在对焦区域后,根据曝光时间调整值实时调整曝光时间。即当画面中变化区域变化较小,画面中对焦区域未丢失时,根据获取的曝光时间调整值实时调整曝光时间;当画面中变化区域变化较大,画面中对焦区域丢失时,在检测到获取对焦区域时,再调整曝光时间。Through the motion detection algorithm, the mobile terminal can acquire the exposure time adjustment value in real time according to the position and the change speed of the changed area. When the mobile terminal detects that there is a focus area in the screen, the exposure time is adjusted in real time according to the exposure time adjustment value; when the mobile terminal detects that there is no focus area in the picture, after detecting that the focus area exists in the picture, according to the exposure time The adjustment value adjusts the exposure time in real time. That is, when the change area of the change in the picture is small, and the focus area in the picture is not lost, the exposure time is adjusted in real time according to the acquired exposure time adjustment value; when the change area in the picture changes greatly, the focus area in the picture is lost, and the acquisition is detected. Adjust the exposure time when focusing on the area.
在一个实施例中,根据曝光时间调整值调整曝光时间后,上述曝光方法还包括:检测在预设时长内是否接收到拍摄指令;若未接收拍摄指令,重新检测画面中是否存在变化区域;若检测到画面中存在变化区域,根据变化区域对应的曝光时间调整值调整曝光时间。In an embodiment, after the exposure time is adjusted according to the exposure time adjustment value, the exposure method further includes: detecting whether a shooting instruction is received within a preset time period; if the shooting instruction is not received, re-detecting whether there is a change area in the screen; A change area is detected in the screen, and the exposure time is adjusted according to the exposure time adjustment value corresponding to the change area.
移动终端根据获取的曝光时间调整值调整曝光时间后,检测在预设时长内是否接收到拍摄指令,若接收到拍摄指令,根据调整的曝光时间进行拍摄;若未接收拍摄指令,则采用运动检测算法检测画面中是否存在变化区域,若检测到画面中存在变化区域,根据变化区域的位置和变化速度获取曝光时间调整值,并根据获取的曝光时间调整值重新调整曝光时间。After the mobile terminal adjusts the exposure time according to the obtained exposure time adjustment value, it detects whether a shooting instruction is received within the preset time period, and if a shooting instruction is received, the shooting is performed according to the adjusted exposure time; if the shooting instruction is not received, the motion detection is adopted. The algorithm detects whether there is a change area in the picture. If a change area exists in the picture, the exposure time adjustment value is acquired according to the position and the change speed of the change area, and the exposure time is re-adjusted according to the acquired exposure time adjustment value.
在一个实施例中,步骤(2)中根据变化区域的位置和变化速度获取曝光 时间调整值包括:根据变化区域的位置获取曝光时间调整精度;根据曝光时间调整精度和变化速度获取曝光时间调整值。In an embodiment, the obtaining the exposure time adjustment value according to the position and the change speed of the change region in the step (2) comprises: obtaining the exposure time adjustment accuracy according to the position of the change region; and obtaining the exposure time adjustment value according to the exposure time adjustment accuracy and the change speed. .
移动终端通过运动检测算法检测到画面中变化区域后,可判断画面中变化区域是主体区域或背景区域,再获取预设的变化区域对应的曝光时间调整精度,根据曝光时间调整精度和变化区域的变化速度来获取曝光时间调整值。其中,变化区域的变化速度可通过运动检测算法检测出,通过差值图像中像素点的值可获取变化区域中每个像素点的变化距离,通过两帧图像之间的时间差可获取变化时间,通过变化距离和变化时间可获取每个像素点的变化速度。其中,画面中变化区域为主体区域时,曝光时间调整精度较高;画面中变化区域为背景区域时,曝光时间调整精度较低。在变化区域为主体区域时,变化区域与对焦区域的距离越近,曝光时间调整精度越高。变化区域的变化速度越快,图像的曝光时间调整值越大,曝光时间越短。After detecting the changed area in the picture by the motion detection algorithm, the mobile terminal can determine that the changed area in the picture is the main body area or the background area, and then acquire the exposure time adjustment precision corresponding to the preset change area, and adjust the accuracy and the change area according to the exposure time. Change the speed to get the exposure time adjustment value. The change speed of the change region can be detected by the motion detection algorithm, and the change distance of each pixel in the change region can be obtained by the value of the pixel in the difference image, and the change time can be obtained by the time difference between the two frames. The rate of change of each pixel can be obtained by varying the distance and the time of change. When the change region in the screen is the main region, the exposure time adjustment accuracy is high; when the change region in the screen is the background region, the exposure time adjustment accuracy is low. When the change region is the body region, the closer the distance between the change region and the focus region is, the higher the exposure time adjustment accuracy is. The faster the change region changes, the larger the exposure time adjustment value of the image, and the shorter the exposure time.
在一个实施例中,当变化区域为主体区域时,根据变化区域的变化速度和变化区域与对焦区域的距离来获取曝光时间调整值;当变化区域为背景区域时,不调整曝光时间。In one embodiment, when the change region is the body region, the exposure time adjustment value is obtained according to the change speed of the change region and the distance between the change region and the focus region; when the change region is the background region, the exposure time is not adjusted.
在一个实施例中,步骤(1)中检测画面中是否存在变化区域包括:通过运动检测算法检测画面中是否存在运动物体;若检测到存在运动物体,则确定画面中存在变化区域。In an embodiment, detecting whether there is a change region in the picture in step (1) comprises: detecting, by the motion detection algorithm, whether there is a moving object in the picture; if detecting that the moving object exists, determining that there is a change area in the picture.
移动终端在检测稳定画面中是否存在变化区域时,通过运动检测算法检测画面中是否存在运动物体。其中,运动物体可包括整体运动的物体或部分运动的物体。When the mobile terminal detects whether there is a change region in the stable picture, the motion detection algorithm detects whether there is a moving object in the picture. Among them, the moving object may include an integrally moving object or a partially moving object.
在一个实施例中,上述曝光方法还包括:对运动检测算法设置检测精度,根据设置的检测精度检测画面中是否存在变化区域。In one embodiment, the exposure method further includes: setting a detection accuracy to the motion detection algorithm, and detecting whether there is a change region in the screen according to the set detection accuracy.
移动终端在利用运动检测算法检测画面中是否存在变化区域时,还可对运动检测算法设置检测精度。检测精度越高,当前检测图像与背景图像间可检测出的差异值越小,即检测精度越高,变化区域越微小的变化越能检测出。The mobile terminal can also set the detection accuracy of the motion detection algorithm when detecting whether there is a change region in the picture by using the motion detection algorithm. The higher the detection accuracy, the smaller the difference value detectable between the current detected image and the background image, that is, the higher the detection accuracy, the smaller the change of the change region can be detected.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流 程,是可以通过计算机程序来指令相关的硬件来完成,的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等。A person skilled in the art can understand that all or part of the process of implementing the above embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a non-volatile computer readable storage medium. The program, when executed, may include the flow of an embodiment of the methods as described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or the like.
以上实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above embodiments are merely illustrative of several embodiments of the present application, and the description thereof is more specific and detailed, but is not to be construed as limiting the scope of the claims. It should be noted that a number of variations and modifications may be made by those skilled in the art without departing from the spirit and scope of the present application. Therefore, the scope of the invention should be determined by the appended claims.

Claims (16)

  1. 一种曝光方法,包括:An exposure method comprising:
    在画面稳定后,检测画面中是否存在变化区域;After the picture is stable, it is detected whether there is a change area in the picture;
    若检测到画面中存在变化区域,根据所述变化区域的位置和变化速度获取曝光时间调整值;及If it is detected that there is a change area in the picture, the exposure time adjustment value is obtained according to the position and the change speed of the change area; and
    根据所述曝光时间调整值调整曝光时间。The exposure time is adjusted according to the exposure time adjustment value.
  2. 根据权利要求1所述的曝光方法,其特征在于,所述根据所述曝光时间调整值调整曝光时间后,还包括:The exposure method according to claim 1, wherein the adjusting the exposure time according to the exposure time adjustment value further comprises:
    检测在预设时长内是否接收到拍摄指令;Detecting whether a shooting instruction is received within a preset time period;
    若未接收所述拍摄指令,重新检测画面中是否存在变化区域;及If the shooting instruction is not received, re-detect whether there is a change area in the screen; and
    若再次检测到画面中存在变化区域,根据再次检测到的变化区域对应的曝光时间调整值调整所述曝光时间。If it is detected again that there is a change region in the screen, the exposure time is adjusted based on the exposure time adjustment value corresponding to the change region detected again.
  3. 根据权利要求1所述的曝光方法,其特征在于,所述根据所述变化区域的位置和变化速度获取曝光时间调整值包括:The exposure method according to claim 1, wherein the obtaining the exposure time adjustment value according to the position and the change speed of the change region comprises:
    根据所述变化区域的位置获取曝光时间调整精度;及Obtaining an exposure time adjustment accuracy according to the position of the change region; and
    根据所述曝光时间调整精度和所述变化速度获取所述曝光时间调整值。The exposure time adjustment value is acquired according to the exposure time adjustment accuracy and the change speed.
  4. 根据权利要求1所述的曝光方法,其特征在于,所述检测画面中是否存在变化区域包括:The exposure method according to claim 1, wherein the detecting whether there is a change area in the picture comprises:
    通过运动检测算法检测画面中是否存在运动物体;若检测到存在运动物体,则确定画面中存在所述变化区域。The motion detection algorithm detects whether there is a moving object in the picture; if it is detected that there is a moving object, it is determined that the changed area exists in the picture.
  5. 根据权利要求4所述的曝光方法,其特征在于,还包括:The exposure method according to claim 4, further comprising:
    对所述运动检测算法设置检测精度,根据设置的检测精度检测画面中是否存在所述变化区域。The detection accuracy is set for the motion detection algorithm, and whether the change region exists in the screen is detected according to the set detection accuracy.
  6. 一种曝光装置,包括:An exposure device comprising:
    检测模块,用于在画面稳定后,检测画面中是否存在变化区域;a detecting module, configured to detect whether there is a change area in the screen after the picture is stable;
    获取模块,用于若检测到画面中存在变化区域,根据所述变化区域的位置和变化速度获取曝光时间调整值;An acquiring module, configured to obtain an exposure time adjustment value according to a position and a change speed of the change area if a change area exists in the screen is detected;
    调整模块,用于根据所述曝光时间调整值调整曝光时间。The adjustment module is configured to adjust the exposure time according to the exposure time adjustment value.
  7. 一种移动终端,包括存储器及处理器,所述存储器中储存有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如下步骤:A mobile terminal includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the following steps:
    在画面稳定后,检测画面中是否存在变化区域;After the picture is stable, it is detected whether there is a change area in the picture;
    若检测到画面中存在变化区域,根据所述变化区域的位置和变化速度获取曝光时间调整值;及If it is detected that there is a change area in the picture, the exposure time adjustment value is obtained according to the position and the change speed of the change area; and
    根据所述曝光时间调整值调整曝光时间。The exposure time is adjusted according to the exposure time adjustment value.
  8. 根据权利要求7所述的移动终端,其特征在于,所述计算机程序被所述处理器执行时,在所述根据所述曝光时间调整值调整曝光时间之后,还使得所述处理器执行如下步骤:The mobile terminal according to claim 7, wherein when the computer program is executed by the processor, after the adjusting the exposure time according to the exposure time adjustment value, the processor is further caused to perform the following steps :
    检测在预设时长内是否接收到拍摄指令;Detecting whether a shooting instruction is received within a preset time period;
    若未接收所述拍摄指令,重新检测画面中是否存在变化区域;及If the shooting instruction is not received, re-detect whether there is a change area in the screen; and
    若再次检测到画面中存在变化区域,根据再次检测到的变化区域对应的曝光时间调整值调整所述曝光时间。If it is detected again that there is a change region in the screen, the exposure time is adjusted based on the exposure time adjustment value corresponding to the change region detected again.
  9. 根据权利要求7所述的移动终端,其特征在于,所述处理器执行的所述根据所述变化区域的位置和变化速度获取曝光时间调整值包括:The mobile terminal according to claim 7, wherein the obtaining the exposure time adjustment value according to the position and the change speed of the change region performed by the processor comprises:
    根据所述变化区域的位置获取曝光时间调整精度;及Obtaining an exposure time adjustment accuracy according to the position of the change region; and
    根据所述曝光时间调整精度和所述变化速度获取所述曝光时间调整值。The exposure time adjustment value is acquired according to the exposure time adjustment accuracy and the change speed.
  10. 根据权利要求7所述的移动终端,其特征在于,所述处理器执行的所述检测画面中是否存在变化区域包括:The mobile terminal according to claim 7, wherein whether the change area exists in the detection picture executed by the processor comprises:
    通过运动检测算法检测画面中是否存在运动物体;若检测到存在运动物体,则确定画面中存在所述变化区域。The motion detection algorithm detects whether there is a moving object in the picture; if it is detected that there is a moving object, it is determined that the changed area exists in the picture.
  11. 根据权利要求10所述的移动终端,其特征在于,所述处理器还执行:The mobile terminal of claim 10, wherein the processor further performs:
    对所述运动检测算法设置检测精度,根据设置的检测精度检测画面中是否存在所述变化区域。The detection accuracy is set for the motion detection algorithm, and whether the change region exists in the screen is detected according to the set detection accuracy.
  12. 一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如下步骤:A computer readable storage medium having stored thereon a computer program, the computer program being executed by a processor to implement the following steps:
    在画面稳定后,检测画面中是否存在变化区域;After the picture is stable, it is detected whether there is a change area in the picture;
    若检测到画面中存在变化区域,根据所述变化区域的位置和变化速度获取曝光时间调整值;及If it is detected that there is a change area in the picture, the exposure time adjustment value is obtained according to the position and the change speed of the change area; and
    根据所述曝光时间调整值调整曝光时间。The exposure time is adjusted according to the exposure time adjustment value.
  13. 根据权利要求12所述的计算机可读存储介质,其特征在于,所述计算机程序被所述处理器执行时,在所述根据所述曝光时间调整值调整曝光时间之后,还使得所述处理器执行如下步骤:The computer readable storage medium according to claim 12, wherein said computer program is executed by said processor, said processor being further caused after said adjusting exposure time according to said exposure time adjustment value Perform the following steps:
    检测在预设时长内是否接收到拍摄指令;Detecting whether a shooting instruction is received within a preset time period;
    若未接收所述拍摄指令,重新检测画面中是否存在变化区域;及If the shooting instruction is not received, re-detect whether there is a change area in the screen; and
    若再次检测到画面中存在变化区域,根据再次检测到的变化区域对应的曝光时间调整值调整所述曝光时间。If it is detected again that there is a change region in the screen, the exposure time is adjusted based on the exposure time adjustment value corresponding to the change region detected again.
  14. 根据权利要求12所述的计算机可读存储介质,其特征在于,所述处理器执行的所述根据所述变化区域的位置和变化速度获取曝光时间调整值包括:The computer readable storage medium according to claim 12, wherein the obtaining, by the processor, the obtaining an exposure time adjustment value according to a position and a change speed of the change region comprises:
    根据所述变化区域的位置获取曝光时间调整精度;及Obtaining an exposure time adjustment accuracy according to the position of the change region; and
    根据所述曝光时间调整精度和所述变化速度获取所述曝光时间调整值。The exposure time adjustment value is acquired according to the exposure time adjustment accuracy and the change speed.
  15. 根据权利要求12所述的计算机可读存储介质,其特征在于,所述处理器执行的所述检测画面中是否存在变化区域包括:The computer readable storage medium according to claim 12, wherein whether the change region exists in the detection screen executed by the processor comprises:
    通过运动检测算法检测画面中是否存在运动物体;若检测到存在运动物体,则确定画面中存在所述变化区域。The motion detection algorithm detects whether there is a moving object in the picture; if it is detected that there is a moving object, it is determined that the changed area exists in the picture.
  16. 根据权利要求15所述的计算机可读存储介质,其特征在于,所述处理器还执行:The computer readable storage medium of claim 15 wherein the processor further executes:
    对所述运动检测算法设置检测精度,根据设置的检测精度检测画面中是否存在所述变化区域。The detection accuracy is set for the motion detection algorithm, and whether the change region exists in the screen is detected according to the set detection accuracy.
PCT/CN2018/088820 2017-05-31 2018-05-29 Exposure method and device, computer-readable storage medium, and mobile terminal WO2018219267A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710400639.2A CN107147823A (en) 2017-05-31 2017-05-31 Exposure method, device, computer-readable recording medium and mobile terminal
CN201710400639.2 2017-05-31

Publications (1)

Publication Number Publication Date
WO2018219267A1 true WO2018219267A1 (en) 2018-12-06

Family

ID=59780709

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/088820 WO2018219267A1 (en) 2017-05-31 2018-05-29 Exposure method and device, computer-readable storage medium, and mobile terminal

Country Status (2)

Country Link
CN (1) CN107147823A (en)
WO (1) WO2018219267A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114979498A (en) * 2021-02-20 2022-08-30 Oppo广东移动通信有限公司 Exposure processing method, exposure processing device, electronic equipment and computer readable storage medium

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107147823A (en) * 2017-05-31 2017-09-08 广东欧珀移动通信有限公司 Exposure method, device, computer-readable recording medium and mobile terminal
WO2021035729A1 (en) * 2019-08-30 2021-03-04 中新智擎科技有限公司 Exposure method and apparatus, image capture module, and electronic device
CN113132645B (en) * 2019-12-31 2022-09-06 浙江宇视科技有限公司 Image acquisition method, device, equipment and storage medium
CN113766260A (en) * 2021-08-24 2021-12-07 武汉瓯越网视有限公司 Face automatic exposure optimization method, storage medium, electronic device and system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007288768A (en) * 2006-03-22 2007-11-01 Seiko Epson Corp Image sensing element, imaging apparatus, imaging system and imaging method
CN101304489A (en) * 2008-06-20 2008-11-12 北京中星微电子有限公司 Automatic exposure method and apparatus
JP2014053863A (en) * 2012-09-10 2014-03-20 Olympus Imaging Corp Photographing apparatus
CN105100634A (en) * 2015-07-09 2015-11-25 小米科技有限责任公司 Image photographing method and image photographing device
CN105744116A (en) * 2016-02-25 2016-07-06 广东欧珀移动通信有限公司 Detection method, control method, detection device, control device and electronic device
CN105898143A (en) * 2016-04-27 2016-08-24 维沃移动通信有限公司 Moving object snapshotting method and mobile terminal
CN106331518A (en) * 2016-09-30 2017-01-11 北京旷视科技有限公司 Image processing method and device and electronic system
CN107147823A (en) * 2017-05-31 2017-09-08 广东欧珀移动通信有限公司 Exposure method, device, computer-readable recording medium and mobile terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101304488B (en) * 2008-06-20 2010-12-15 北京中星微电子有限公司 Method and device for capturing image
CN105574866A (en) * 2015-12-15 2016-05-11 努比亚技术有限公司 Image processing method and apparatus
CN106454145B (en) * 2016-09-28 2019-05-31 湖南优象科技有限公司 A kind of automatic explosion method with scene adaptive

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007288768A (en) * 2006-03-22 2007-11-01 Seiko Epson Corp Image sensing element, imaging apparatus, imaging system and imaging method
CN101304489A (en) * 2008-06-20 2008-11-12 北京中星微电子有限公司 Automatic exposure method and apparatus
JP2014053863A (en) * 2012-09-10 2014-03-20 Olympus Imaging Corp Photographing apparatus
CN105100634A (en) * 2015-07-09 2015-11-25 小米科技有限责任公司 Image photographing method and image photographing device
CN105744116A (en) * 2016-02-25 2016-07-06 广东欧珀移动通信有限公司 Detection method, control method, detection device, control device and electronic device
CN105898143A (en) * 2016-04-27 2016-08-24 维沃移动通信有限公司 Moving object snapshotting method and mobile terminal
CN106331518A (en) * 2016-09-30 2017-01-11 北京旷视科技有限公司 Image processing method and device and electronic system
CN107147823A (en) * 2017-05-31 2017-09-08 广东欧珀移动通信有限公司 Exposure method, device, computer-readable recording medium and mobile terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114979498A (en) * 2021-02-20 2022-08-30 Oppo广东移动通信有限公司 Exposure processing method, exposure processing device, electronic equipment and computer readable storage medium
CN114979498B (en) * 2021-02-20 2023-06-30 Oppo广东移动通信有限公司 Exposure processing method, device, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN107147823A (en) 2017-09-08

Similar Documents

Publication Publication Date Title
WO2018219267A1 (en) Exposure method and device, computer-readable storage medium, and mobile terminal
WO2019091486A1 (en) Photographing processing method and device, terminal, and storage medium
US10567659B2 (en) Image compensation method, electronic device and computer-readable storage medium
WO2018219275A1 (en) Focusing method and device, computer-readable storage medium, and mobile terminal
CN108234875B (en) Shooting display method and device, mobile terminal and storage medium
WO2020088134A1 (en) Video correction method and device, electronic apparatus, and computer-readable storage medium
KR101712301B1 (en) Method and device for shooting a picture
WO2021057267A1 (en) Image processing method and terminal device
WO2018219170A1 (en) Focusing control method, computer device and computer readable storage medium
WO2019129020A1 (en) Automatic focusing method of camera, storage device and mobile terminal
WO2017071219A1 (en) Method for detecting skin region and device for detecting skin region
WO2019129092A1 (en) Frame rate-lowered photographing method, mobile terminal and storage medium
WO2018098638A1 (en) Electronic device photographing method and apparatus
CN108769506B (en) Image acquisition method and device, mobile terminal and computer readable medium
WO2020107856A1 (en) Screen display method and apparatus
WO2019137535A1 (en) Object distance measurement method and terminal device
WO2023005060A1 (en) Image capture method, mobile terminal and storage medium
WO2022266907A1 (en) Processing method, terminal device and storage medium
CN114095437A (en) Method and device for sending data packet, electronic equipment and storage medium
KR20220093246A (en) Filming method and electronic device
CN111028192B (en) Image synthesis method and electronic equipment
CN108881721A (en) A kind of display methods and terminal
JP7472281B2 (en) Electronic device and focusing method
JP7413546B2 (en) Photography method and electronic equipment
CN105513098B (en) Image processing method and device

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: 18809186

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18809186

Country of ref document: EP

Kind code of ref document: A1