WO2015003604A1 - 一种图像处理方法、装置及终端 - Google Patents

一种图像处理方法、装置及终端 Download PDF

Info

Publication number
WO2015003604A1
WO2015003604A1 PCT/CN2014/081787 CN2014081787W WO2015003604A1 WO 2015003604 A1 WO2015003604 A1 WO 2015003604A1 CN 2014081787 W CN2014081787 W CN 2014081787W WO 2015003604 A1 WO2015003604 A1 WO 2015003604A1
Authority
WO
WIPO (PCT)
Prior art keywords
target object
moving
photographing
image processing
frame images
Prior art date
Application number
PCT/CN2014/081787
Other languages
English (en)
French (fr)
Inventor
陈磊
Original Assignee
华为终端有限公司
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 华为终端有限公司 filed Critical 华为终端有限公司
Priority to KR1020157035933A priority Critical patent/KR20160010603A/ko
Priority to EP14823179.8A priority patent/EP2993888A4/en
Priority to JP2016522248A priority patent/JP2016528772A/ja
Publication of WO2015003604A1 publication Critical patent/WO2015003604A1/zh
Priority to US14/964,757 priority patent/US20160094770A1/en

Links

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/74Circuitry for compensating brightness variation in the scene by influencing the scene brightness using illuminating means
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/68Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
    • H04N23/681Motion detection
    • H04N23/6811Motion detection based on the image signal
    • 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/72Combination of two or more compensation controls
    • 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
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/76Circuitry for compensating brightness variation in the scene by influencing the image signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N25/00Circuitry of solid-state image sensors [SSIS]; Control thereof
    • H04N25/50Control of the SSIS exposure
    • H04N25/53Control of the integration time

Definitions

  • the present invention relates to the field of data processing, and in particular, to an image processing method, apparatus, and terminal. Background technique
  • the embodiment of the invention provides an image processing method, device and terminal, which can make the captured image clearer and effectively improve the image processing efficiency.
  • a first aspect of the embodiments of the present invention provides a photographing method, the method comprising:
  • the acquired image of the target object is processed according to the exposure parameter and the gain parameter.
  • the acquiring the moving speed of the photographing of the target object includes:
  • the acquiring a moving distance between the two adjacent frame images of the target object includes: determining a lens At least one key information point within the scope;
  • the moving speed of the apparatus is taken as the photographing moving speed of the target object.
  • the acquiring the moving speed of the photographing of the target object includes:
  • the captured moving speed of the target object is zero.
  • the determining the exposure parameter and the gain parameter according to the ambient brightness of the current photographing and the moving speed comprises:
  • Determining an exposure parameter by searching a preset exposure parameter table according to the ambient brightness of the current photograph and the moving speed of the target object;
  • a gain parameter is determined based on the exposure parameter.
  • the method further includes:
  • the photographing moving speed is smoothed.
  • an image processing apparatus includes: an acquiring unit, configured to acquire an ambient brightness of a current photograph and a photographing moving speed of a target object; and a determining unit, configured to acquire according to the acquiring unit Ambient brightness of the current photograph and the target The moving speed of the object, determining the exposure parameter and the gain parameter;
  • a processing unit configured to process the acquired image of the target object according to the exposure parameter and the gain parameter determined by the determining unit.
  • the acquiring unit when the target object moves and the image processing device remains stationary, the acquiring unit includes:
  • a first acquiring module configured to acquire a moving distance between the two adjacent frame images of the target object
  • a second acquiring module configured to acquire a time interval between the two adjacent frame images
  • a third acquiring module configured to acquire a photo of the target object according to the moving distance of the target object and the time interval Moving speed.
  • the first acquiring module is specifically configured to:
  • the acquiring unit uses the moving speed of the apparatus as a photograph of the target object Moving speed.
  • the first acquiring module is further configured to acquire a moving distance of the target object between two adjacent frame images
  • the second obtaining module is further configured to: acquire a time interval between the two adjacent frame images;
  • the third acquiring module is further configured to: obtain, according to the moving distance of the target object and the time interval, a moving speed of photographing of the target object;
  • the moving speed of the photographing of the target object acquired by the third acquiring module is zero.
  • the determining unit includes:
  • a first parameter obtaining module configured to: according to the brightness of the current photographed environment and the target object Moving speed, determining the exposure parameter by looking up a preset exposure parameter table;
  • a second parameter obtaining module configured to determine a gain parameter according to the exposure parameter.
  • the processing unit is further configured to: : Smoothing the moving speed of the photographing.
  • a third aspect of the embodiments of the present invention provides a terminal, where the terminal includes the image processing apparatus according to any one of the foregoing various possible implementation manners of the second aspect or the second aspect.
  • the image processing method, device and terminal provided by the embodiment of the present invention firstly acquire the ambient brightness of the current photograph and the photographing moving speed of the target object; next, determine the exposure parameter according to the current photographed ambient brightness and the moving speed of the target object. Gain parameter; Then, the image of the acquired target object is processed according to the determined exposure parameter and gain parameter.
  • this method can determine the exposure parameter and the gain parameter by the brightness of the current photographed environment and the photographing moving speed of the target object, thereby avoiding the occurrence of ghost images when the photographed target object is a moving object. Or the tailing situation, so that the captured image is more clear, effectively improving the image processing efficiency.
  • FIG. 1 is a schematic flowchart of an image processing method according to Embodiment 1 of the present invention.
  • FIG. 2 is a schematic diagram of a diagram of an image processing method according to Embodiment 1 of the present invention.
  • FIG. 3 is a schematic structural diagram of an image processing apparatus according to Embodiment 2 of the present invention.
  • FIG. 4 is another schematic structural diagram of an image processing apparatus according to Embodiment 2 of the present invention
  • FIG. 5 is another schematic structural diagram of an image processing apparatus according to Embodiment 2 of the present invention
  • a schematic structural diagram of an image processing apparatus A schematic structural diagram of an image processing apparatus
  • FIG. 7 is a schematic flowchart of an image processing method according to Embodiment 4 of the present invention.
  • the first embodiment of the present invention provides an image processing method, which is executed by a terminal, and is specifically executed by an image processing apparatus installed in the terminal. As shown in FIG. 1, the method includes the following steps:
  • the target object refers to one or more persons, animals, scenes, and the like within the lens range of the image processing apparatus.
  • the photographing moving speed of the target object refers to the moving speed of the photographed target object with respect to the image processing apparatus.
  • the image processing apparatus may be used to acquire all images within the range of the lens, and of course, all of the images include images of the target object.
  • the image processing device may include components such as a camera, a light sensor, an image processor, and the like.
  • the following three cases can be specifically: In the first case, the target object is in a moving state, and the image processing device remains in a stationary state; in the second case, the target object remains stationary. The state, and the image processing apparatus is in a moving state; in the third case, both the target object and the image processing apparatus are in a moving state. It should be noted that, in the embodiment of the present invention, the state of the target object and the image processing apparatus in the above three cases is relative to the ground.
  • the photographing moving speed of acquiring the target object may include the following Process:
  • step 11 Acquire a moving speed of the photographing of the target object between two adjacent frame images according to the moving distance and the time interval of the target object.
  • the specific process of obtaining the moving distance of the target object between two adjacent frame images in step 11 may be:
  • the image processing apparatus can adopt the RGB (Red Green Blue) color standard.
  • RGB Red Green Blue
  • the three primary colors of red, green and blue are mixed in different proportions, and tens of millions of colors can be produced.
  • each pixel in the image can be assigned an intensity value in the range of 0-255. Since the color and intensity of each pixel on the image are different, the color and brightness of an information point in the lens range may differ from the surrounding environment, and the information point may be determined as a key information point.
  • the key information points can be a flower on a green meadow, a person's black hair, facial features, and the like.
  • Step 112 Obtain a position of the key information point in two adjacent frame images, and determine, according to positions of the key information points in two adjacent frame images, the target object is in two adjacent frame images. The distance traveled between.
  • step 112 can be further divided into the following two steps:
  • the same key information points as the first frame image can be taken for analysis. For example, two key information points are determined in the first frame image. Among them, the number of key information points on the target object can be determined to be one, and the number of key information points in the surrounding area can be determined as one.
  • the coordinate axis method can be used to determine the moving distance of the target object between two adjacent frame images.
  • the coordinates of a certain key information point a of the target object are (0, 4), and the coordinates of a certain key information point b of the surrounding area are (2, 6);
  • the coordinate of the key information point a is (3,8), and the coordinate of the key information point b is still (2,6), because the coordinate value of the key information point b has not changed, so the key information point b
  • the surrounding area represented by the movement does not move, so it can be concluded that the moving distance of the target object is 5.
  • the time interval between two adjacent frame images is set by the image processing device according to the current ambient brightness.
  • the exposure time required for each frame of image is correspondingly increased.
  • the image processing device adjusts the image output frame rate in real time according to the current exposure time, so that the image output frame rate is decreased, that is, the time interval between two adjacent frame images is increased; on the contrary, when the ambient brightness of the photographing is high, The exposure time should be shortened accordingly, resulting in an increase in the frame rate, which shortens the time interval between two adjacent frame images.
  • the moving speed of the apparatus is taken as the moving speed of the photographing of the target object.
  • the moving speed of the device can be easily obtained by the prior art.
  • the moving speed of the device can be directly measured, and thus the moving speed of the acquired device is the moving speed of the photographing of the target object.
  • the present invention does not specifically limit how to obtain the moving speed of the photographing of the target object.
  • the moving speed of the target object and the image processing device is taken as the moving speed of the photographing of the target object.
  • acquiring the moving speed of the photographing of the target object includes: acquiring a moving distance between the two adjacent frame images of the target object; acquiring a time interval between the images of two adjacent frames; according to the moving distance of the target object and The time interval acquires a photographing moving speed of the target object.
  • the measured moving speed result of the measured target object between the plurality of adjacent frame images may be correspondingly smoothed, so that A more accurate photographing movement speed of the target object is obtained when photographing.
  • Speed smoothing formula
  • Vc the smoothed moving speed
  • Vo the smoothed moving speed of the last calculation.
  • Vnow is the currently calculated moving speed
  • a is the proportional coefficient, and its value ranges from (0, 1).
  • a can be a value of 0.5, so that the currently calculated Vnow is only 50% of the final used Vc ratio.
  • the previous speed is 100, and Vnow is 200 for some reason (such as possible calculation error), but The actual speed may be only 120.
  • the value calculated by Vc is 150, which will smooth out the peaks that may appear in Vnow, thus reducing the error with the actual moving speed.
  • the exposure parameter is a value indicating the sharpness of the photographed image
  • the gain parameter is a value indicating the brightness of the photographed image
  • the exposure parameter can be determined according to the obtained value of the ambient brightness and the value of the photographing moving speed.
  • Value and gain parameter values are Among them, the exposure parameter refers to the exposure time in the embodiment of the present invention. The following describes how the camera movement speed affects the exposure parameters and gain parameters. In the embodiment of the present invention, in the case where the ambient brightness is constant, the faster the photographing movement speed of the target object is, the shorter the set exposure time is.
  • an exposure parameter table may be established, and the ambient brightness of the current photograph and the photographing moving speed of the target object are used as input parameters of the exposure parameter table, and the exposure parameter is used as an output parameter of the exposure parameter table.
  • A, B, and C represent the ambient brightness values
  • VI, V2, and V3 represent the moving speed values
  • E represents the exposure parameter values.
  • Exposure parameter The value is inversely proportional to the speed of the movement and is proportional to the ambient brightness.
  • the above chart is only an example of the embodiment of the present invention. In practical applications, for example, brightness and speed can be divided into more levels, which are not limited by the present invention. In this way, the exposure parameter can be obtained by searching the exposure parameter table according to the ambient brightness of the current photograph and the photographing moving speed of the target object.
  • the gain parameter can be obtained according to the exposure parameter. .
  • the value in the exposure parameter table can be set in advance, so that the user can directly find the corresponding exposure in the preset exposure parameter table according to the current ambient brightness and the moving speed of the target object when photographing the target object. parameter.
  • S13. Process the image of the acquired target object according to the exposure parameter and the gain parameter.
  • the content of the image processing includes the image processing and the brightness processing after the image collection, and the processing of the brightness and the brightness processing are the same as the prior art, and are not described herein.
  • the image processing method of the embodiment of the present invention firstly obtains the ambient brightness of the current photograph and the photographing movement speed of the target object; next, determining the exposure parameter and the gain parameter according to the current photographed ambient brightness and the moving speed of the target object; The acquired image of the target object is processed according to the exposure parameter and the gain parameter.
  • Embodiment 2 Correspondingly, Embodiment 2 of the present invention further provides an image processing apparatus 20, as shown in FIG.
  • an obtaining unit 21, configured to acquire an ambient brightness of a current photograph and a photographing moving speed of the target object
  • a determining unit 22 configured to determine an exposure parameter and a gain parameter according to the ambient brightness of the current photographed and the moving speed of the target object acquired by the acquiring unit 21
  • the processing unit 23, configured to perform the exposure determined according to the determining unit 22 Parameters and gain parameters, for the image of the acquired target object Line processing.
  • the determining unit 22 determines an exposure parameter and a gain parameter according to the ambient brightness of the current photographed image acquired by the acquiring unit 21 and the moving speed of the target object; and then, the determining unit 22 obtains the determined exposure.
  • the processing unit 23 processes the image of the acquired target object.
  • the device can determine the exposure parameter and the gain parameter according to the ambient brightness of the current photograph and the photographing moving speed of the target object, thereby avoiding the occurrence of ghosting or dragging of the photographed image when the photographed target object is a moving object.
  • the tail occurs, which makes the captured image clearer and effectively improves image processing efficiency.
  • the image processing device remains stationary, as shown in FIG.
  • the obtaining unit 21 includes: a first acquiring module 211, configured to acquire the target object a moving distance between two adjacent frame images; a second obtaining module 212, configured to acquire a time interval between the two adjacent frame images; and a third obtaining module 213, configured to move according to the target object The distance and the time interval acquire a photographing moving speed of the target object.
  • the first obtaining module 211 is specifically configured to: determine at least one key information point in a range of the shot; and obtain a position of the key information point in the two adjacent frame images respectively And determining, according to the positions of the key information points in the two adjacent frame images, a moving distance of the target object between two adjacent frame images.
  • the processing unit 23 is further configured to: perform smoothing processing on the moving speed of the photographing.
  • This processing method can enhance the smoothness and accuracy of the operation result of the photographing movement speed.
  • the acquisition unit 21 uses the moving speed of the image processing apparatus as the photographing moving speed of the target object.
  • the first acquiring module 211 is further configured to acquire the target object in two
  • the second acquisition module 212 is further configured to acquire a time interval between the two adjacent frame images
  • the third obtaining module 213 is further configured to: And a moving distance of the target object and the time interval, and acquiring a moving speed of the photographing of the target object.
  • the determining unit 22 includes: a first parameter determining module 221, configured to search for a preset according to an ambient brightness of the current photographed and a moving speed of the target object.
  • the exposure parameter table determines an exposure parameter; the second parameter determination module 222 is configured to determine a gain parameter according to the exposure parameter.
  • FIG. 6 shows another embodiment of the image processing apparatus provided by the present invention.
  • the illustrated image processing apparatus 50 is only one example of the image processing apparatus, and the image processing apparatus 50 may have a ratio. More or fewer components are shown in the figures, two or more components may be combined, or may have different component configurations.
  • the various components shown in the figures can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
  • the image processing apparatus 50 includes a light sensor 51, an image processor 52, a memory 53, a communication interface 54, a bus 55, and a camera 56.
  • a light sensor 51 is disposed in the camera 56.
  • the light sensor 51, the image processor 52, the memory 53, and the communication interface 54 are connected by a bus 55 and complete communication with each other.
  • the bus 55 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus, or an Extended Industry Standard Architecture (EISA). Bus, etc.
  • ISA Industry Standard Architecture
  • PCI Peripheral Component
  • EISA Extended Industry Standard Architecture
  • the bus 55 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 6, but it does not mean that there is only one bus or one type of bus.
  • the memory 53 is for storing executable program code, the program code including computer operating instructions.
  • Memory 53 may include high speed RAM memory and may also include non-volatile memory such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state memory devices.
  • the memory 53 can be accessed by the image processor 52, the communication interface 54, and the like.
  • the light sensor 51 is used to obtain the ambient brightness of the current photograph. Specifically, the light sensor 51 is used to convert ambient light into an electrical signal, which is stored by the memory 53 after being compressed.
  • the image processor 52 includes a signal processing unit 57, a synchronization signal generator 58, an encoder 59, and the like for: acquiring a photographing moving speed of the target object; according to the photographing moving speed of the target object and the current photographing environment acquired by the light sensor 51 Brightness, the exposure parameter and the gain parameter are determined; according to the parameter and the gain parameter, the image obtained by the camera 56 to acquire the target object is processed.
  • the image processor 52 when the target object moves and the image processing device 50 remains stationary, the image processor 52 is configured to: acquire a moving distance of the target object between two adjacent frame images; Obtaining a time interval between the two adjacent frame images; determining a photographing moving speed of the target object according to a moving distance and a time interval of the target object.
  • the image processor 52 is further configured to: determine at least one key information point within the lens range; and obtain a position of the key information point in two adjacent frame images respectively; The position of the key information point in the two adjacent frame images respectively determines the moving distance of the target object between two adjacent frame images.
  • the image processor 52 can also be used to smooth the photographing movement speed.
  • the image processor 52 uses the moving speed of the apparatus 50 as the photographing moving speed of the target object.
  • the image processor 52 is configured to: acquire the target object in two phases. a moving distance between adjacent frame images; acquiring a time interval between the two adjacent frame images; acquiring the target object according to the moving distance of the target object and the time interval The speed of the photo moves.
  • the photographing moving speed of the target object acquired by the image processor 52 is zero.
  • the image processor 52 is configured to:
  • the image processor 52 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one configured to implement an embodiment of the present invention. Or multiple integrated circuits.
  • CPU central processing unit
  • ASIC application specific integrated circuit
  • the image processor 52 may be used to perform other processes in the foregoing method embodiments, and details are not described herein. It should be noted that the division of each functional unit in the image processor 52 can be referred to the foregoing embodiment of the image processing apparatus, and details are not described herein again.
  • the embodiment of the present invention further provides a terminal, where the terminal includes the image processing apparatus according to any one of the embodiments of the foregoing image processing apparatus.
  • the terminal provided by the embodiment of the present invention may be any device having a photographing function, such as a mobile phone, a tablet computer, a personal digital assistant, or a PC.
  • FIG. 7 is a block diagram showing a part of the structure of a mobile phone 70 associated with a terminal provided by an embodiment of the present invention.
  • the mobile phone 70 includes an external camera sensor 71, a microprocessor 72, a memory 73, an LCD (Liquid Crystal Display) display 74, a bus 75, and an ISP (Image Signal Processor) unit 76. Modules such as image sensor 77, arithmetic processor 78, and image encoder 79.
  • the bus 75 includes a MIPI (Mobile Industry Processor) bus 751 and an (Iner-Integrated Circuit) bus 752.
  • FIG. 7 does not constitute a limitation on the mobile phone. It is intended to include more or fewer components than those illustrated, or to combine certain components, or different component arrangements.
  • the external camera sensor 71 can be used to collect images, and each frame of the image collected by the MIPI bus 751 is sent to the microprocessor 72.
  • ISP unit 76 The operation processor 78 is configured to determine the moving speed of the photographing of the target object, and send the obtained photographing moving speed result to the microprocessor 72; at the same time, the ISP unit 76 also sends the brightness of the current photographing environment acquired by the light sensor to the micro In the processor 72.
  • the microprocessor 72 determines the exposure parameters and gain parameters required for the photographing phase based on the photographing movement speed of the target object and the current photographing environment brightness.
  • the microprocessor 72 sends the exposure parameters obtained according to the previous preview stage to the external camera sensor 71 via the bus 752 for setting, so that the ISP unit 76 can collect images according to the exposure parameters;
  • the microprocessor 72 sends the gain parameters to the ISP module for setting so that the ISP unit 76 can perform brightness processing on the captured images in accordance with the gain parameters.
  • the brightness processed image is sent to the image encoder 79 for image compression, and the memory 73 is used for image storage or image display via the LCD display 74.
  • the specific method in the first embodiment can be implemented by the mobile phone 70 and will not be described herein.
  • the mobile phone 70 may further include a camera, a Bluetooth module, and the like, and details are not described herein.
  • the various embodiments in the present specification are described in a progressive manner, and the same or similar parts between the various embodiments may be referred to each other, and each embodiment focuses on differences from other embodiments.
  • the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
  • the device embodiments described above are merely illustrative, and the components may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units.
  • the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • the module The connection relationship between them indicates that there is a communication connection between them, and specifically can be implemented as one or more communication buses or signal lines.
  • the present invention can be implemented by means of software plus necessary general hardware, and of course, dedicated hardware, dedicated CPU, dedicated memory, dedicated memory, Special components and so on. In general, functions performed by computer programs can be easily implemented with the corresponding hardware.
  • the specific hardware structure used to implement the same function can be various, such as analog circuits, digital circuits, or dedicated circuits. Circuits, etc.
  • software program implementation is a better implementation in more cases. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a readable storage medium, such as a floppy disk of a computer.
  • U disk mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., including a number of instructions to make a computer device (may be A personal computer, server, or network device, etc., performs the methods described in various embodiments of the present invention.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • disk or optical disk etc., including a number of instructions to make a computer device (may be A personal computer, server, or network device, etc., performs the methods described in various embodiments of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Exposure Control For Cameras (AREA)

Abstract

本发明实施例公开了一种图像处理方法、装置及终端,涉及数据处理领域,能够使拍出来的图像更为清晰,有效提高图像处理效率。所述方法包括:获取当前拍照的环境亮度及目标物体的拍照移动速度;根据当前拍照的环境亮度及目标物体的移动速度,确定曝光参数和增益参数;根据曝光参数和增益参数,对获取的目标物体的图像进行处理。本发明可用于数据处理技术中。

Description

一种图像处理方法、 装置及终端 本申请要求于 2013 年 7 月月 8 日提交中国专利局、 申请号为 201310284374.6、 发明名称为"一种图像处理方法、 装置及终端"的中国专利 申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域
本发明涉及数据处理领域, 尤其涉及一种图像处理方法、 装置及终端。 背景技术
对于目前的终端, 如手机、 平板电脑等都会配有摄像头, 用户可以利用终 端随时随地的进行拍照。
但是, 由于手机等终端受到尺寸限制, 所配备摄像头的光圈都很小, 不能 在将快门时间(曝光时间)设置的非常短的同时,还能保持充分的曝光。这样, 在终端拍照移动的物体时,通常会产生明显的虚影和拖尾现象,使得拍出来的 图像非常不清晰, 图像处理效率降低。 发明内容
本发明实施例提供一种图像处理方法、装置及终端, 能够使拍出来的图像 更为清晰, 有效提高图像处理效率。
本发明实施例的第一方面, 提供一种拍照方法, 该方法包括:
获取当前拍照的环境亮度及目标物体的拍照移动速度;
根据所述当前拍照的环境亮度及所述目标物体的移动速度,确定曝光参数 和增益参数;
根据所述曝光参数和增益参数, 对获取的所述目标物体的图像进行处理。 在第一方面的第一种可能的实现方式中,当所述目标物体移动且图像处理 装置保持静止时, 所述获取所述目标物体的拍照移动速度包括:
获取所述目标物体在两个相邻帧图像之间的移动距离;
获取所述两个相邻帧图像之间的时间间隔;
根据所述目标物体的移动距离和所述时间间隔,获取所述目标物体的拍照 移动速度。
结合第一方面的第一种可能的实现方式,在第一方面的第二种可能的实现 方式中, 所述获取所述目标物体在两个相邻帧图像之间的移动距离包括: 确定镜头范围内的至少一个关键信息点;
获取所述关键信息点分别在所述两个相邻帧图像中的位置;
根据所述关键信息点分别在所述两个相邻帧图像中的位置,确定所述目标 物体在两个相邻帧图像之间的移动距离。
在第一方面的第三种可能的实现方式中,当所述目标物体保持静止且图像 处理装置处于移动状态时,将所述装置的移动速度作为所述目标物体的拍照移 动速度。
在第一方面的第四种可能的实现方式中,当所述目标物体和图像处理装置 均处于移动状态, 且两者的移动速度不一致时, 所述获取所述目标物体的拍照 移动速度包括:
获取所述目标物体在两个相邻帧图像之间的移动距离;
获取所述两个相邻帧图像之间的时间间隔;
根据所述目标物体的移动距离和所述时间间隔 ,获取所述目标物体的拍照 移动速度;
当所述目标物体和所述图像处理装置均处于移动状态,且两者的移动速度 一致时, 所述获取的所述目标物体的拍照移动速度为零。
在第一方面的第五种可能的实现方式中,所述根据所述当前拍照的环境亮 度及所述移动速度, 确定曝光参数和增益参数包括:
根据所述当前拍照的环境亮度及所述目标物体的移动速度,通过查找预设 的曝光参数表确定曝光参数;
根据所述曝光参数, 确定增益参数。
结合第一方面的第一种可能的实现方式或第一方面的第二种可能的实现 方式, 在第一方面的第六种可能的实现方式中, 所述方法还包括:
对所述拍照移动速度进行平滑处理。
本发明实施例的第二方面, 提供一种图像处理装置, 该装置包括: 获取单元, 用于获取当前拍照的环境亮度及目标物体的拍照移动速度; 确定单元,用于根据所述获取单元获取的当前拍照的环境亮度及所述目标 物体的移动速度, 确定曝光参数和增益参数;
处理单元, 用于根据所述确定单元确定的曝光参数和增益参数,对获取的 所述目标物体的图像进行处理。
在第二方面的第一种可能的实现方式中,当所述目标物体移动且所述图像 处理装置保持静止时, 所述获取单元包括:
第一获取模块, 用于获取所述目标物体在两个相邻帧图像之间的移动距 离;
第二获取模块, 用于获取所述两个相邻帧图像之间的时间间隔; 第三获取模块, 用于根据所述目标物体的移动距离和所述时间间隔, 获取 所述目标物体的拍照移动速度。
结合第二方面的第一种可能的实现方式,在第二方面的第二种可能的实现 方式中, 所述第一获取模块具体用于:
确定镜头范围内的至少一个关键信息点;
获取所述关键信息点分别在所述两个相邻帧图像中的位置;
根据所述关键信息点分别在所述两个相邻帧图像中的位置,确定所述目标 物体在两个相邻帧图像之间的移动距离。
在第二方面的第三种可能的实现方式中,当所述目标物体保持静止且所述 图像处理装置处于移动状态时,所述获取单元将所述装置的移动速度作为所述 目标物体的拍照移动速度。
在第二方面的第四种可能的实现方式中,当所述目标物体和所述图像处理 装置均处于移动状态, 且两者的移动速度不一致时,
所述第一获取模块还用于,获取所述目标物体在两个相邻帧图像之间的移 动距离;
所述第二获取模块还用于, 获取所述两个相邻帧图像之间的时间间隔; 所述第三获取模块还用于, 根据所述目标物体的移动距离和所述时间间 隔, 获取所述目标物体的拍照移动速度;
当所述目标物体和所述图像处理装置均处于移动状态,且两者的移动速度 一致时, 所述第三获取模块获取的所述目标物体的拍照移动速度为零。
在第二方面的第五种可能的实现方式中, 所述确定单元包括:
第一参数获取模块,用于根据所述当前拍照的环境亮度及所述目标物体的 移动速度, 通过查找预设的曝光参数表确定曝光参数;
第二参数获取模块, 用于根据所述曝光参数, 确定增益参数。
结合第二方面的第一种可能的实现方式或第二方面的第二方面的第二种 可能的实现方式, 在第二方面的第六种可能的实现方式中, 所述处理单元还用 于: 对所述拍照移动速度进行平滑处理。
本发明实施例的第三方面,提供一种终端, 所述终端包括第二方面或第二 方面的上述各个可能的实现方式中的任意一个实现方式所述的图像处理装置。
本发明实施例提供的图像处理方法、 装置及终端, 首先, 获取当前拍照的 环境亮度及目标物体的拍照移动速度; 接下来,根据当前拍照的环境亮度及目 标物体的移动速度, 确定曝光参数和增益参数; 然后, 以根据确定的曝光参数 和增益参数, 对获取的目标物体的图像进行处理。 从上可看出, 这种可通过当 前拍照的环境亮度及目标物体的拍照移动速度,确定曝光参数和增益参数的方 式,避免了当所拍照目标物体为移动物体时, 拍出的图像出现虚影或拖尾的情 况, 从而使拍出来的图像更为清晰, 有效提高图像处理效率。 附图说明
为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需 要使用的附图作一简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明 的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。
图 1为本发明实施例一提供的图像处理方法的一种流程示意图;
图 2为本发明实施例一提供的图像处理方法的一种图表示意图;
图 3为本发明实施例二提供的图像处理装置的一种结构示意图;
图 4为本发明实施例二提供的图像处理装置的另一种结构示意图; 图 5为本发明实施例二提供的图像处理装置的另一种结构示意图; 图 6为本发明实施例三提供的图像处理装置的一种结构示意图;
图 7为本发明实施例四提供的图像处理方法的一种流程示意图。 具体实施方式 下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行 清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而 不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有做 出创造性劳动前提下所获得的所有其他实施例 , 都属于本发明保护的范围。
实施例一 本发明实施例一提供了一种图像处理方法, 由终端执行, 具体由终端中 装配的图像处理装置执行, 如图 1所示, 具体包括以下步骤:
S11 , 获取当前拍照的环境亮度及目标物体的拍照移动速度。 本步骤中, 所述目标物体是指, 在图像处理装置的镜头范围内的一个或 多个人物、 动物或景物等。 目标物体的拍照移动速度是指, 所拍照的目标物 体相对图像处理装置的移动速度。 需要说明的是, 图像处理装置可以用于获 取镜头范围内的所有图像, 当然, 所述所有图像包括目标物体的图像。 其 中, 所述图像处理装置可以包括摄像头、 光感器、 图像处理器等部件。 根据图像处理装置及目标物体各自处于的不同状态, 具体可分为以下三 种情况: 第一种情况, 目标物体处于移动状态, 且图像处理装置保持静止状态; 第二种情况, 目标物体保持静止状态, 且图像处理装置处于移动状态; 第三 种情况, 目标物体和图像处理装置均处于移动状态。 需要注意的是, 本发明实施例中, 上述三种情况下目标物体和图像处理 装置所处的状态是相对地面而言的。 在以上三种情况下获取目标物体的拍照移动速度的具体实现过程如下: 第一种情况, 当目标物体处于移动状态, 且图像处理装置保持静止状态 时, 获取目标物体的拍照移动速度可包括以下过程:
11 , 获取目标物体在两个相邻帧图像之间的移动距离; 12, 获取两个相邻帧图像之间的时间间隔;
13 , 根据目标物体的移动距离和时间间隔, 获取目标物体在两个相邻帧 图像之间的拍照移动速度。 其中, 步骤 11获取目标物体在两个相邻帧图像之间的移动距离的具体过 程可以为:
111 , 首先确定镜头范围内的至少一个关键信息点。 在本发明实施例中, 图像处理装置可以釆用 RGB ( Red Green Blue, 红绿 蓝)颜色标准。 依据 RGB原理, 红绿蓝三种原色按照不同的比例混合, 可产 生上千万种颜色。 并且在 RGB模式下, 能够为图像中每一个像素分配一个 0-255 范围内的强度值。 由于图像上每个像素分配的色彩及强度不同, 因 此, 镜头范围内某一信息点的色彩及亮度和周边环境的会有所差别, 可以将 该信息点确定为关键信息点。 例如关键信息点可以为绿色草地上的一朵花, 人的黑色头发, 面部特征等等。
112, 获取所述关键信息点分别在两个相邻帧图像中的位置, 并根据所述 关键信息点分别在两个相邻帧图像中的位置, 确定目标物体在两个相邻帧图 像之间的移动距离。 在本发明的一个具体实施例中, 步骤 112又可分为以下两步骤:
1121 , 在第一帧图像中, 确定至少一个关键信息点。 对第二帧或者是第 二帧之后的图像, 就可以取与第一帧图像相同的关键信息点进行分析。 例如, 在第一帧图像中确定 2 个关键信息点。 其中, 在目标物体上的关 键信息点个数可确定取 1个, 周围区域的关键信息点个数可确定为取 1个。
1122, 确定上述 2 个关键信息点在两个相邻帧图像中的位置, 并根据关 键信息点分别在两个相邻帧图像中的位置, 确定目标物体在两个相邻帧图像 之间的移动距离。 关于确定目标物体在两个相邻帧图像之间的移动距离可釆用坐标轴法。 举例而言, 在第一帧图像中, 目标物体的某一关键信息点 a的坐标是(0,4 ) , 而周围区域的某一关键信息点 b的坐标是(2,6 ) ; 在第二帧图像中, 关键信 息点 a的坐标是(3,8 ) , 而关键信息点 b的坐标仍然是(2,6 ) , 因为关键信 息点 b的坐标值未变, 因此以关键信息点 b为代表的周围区域没有移动, 因 此, 可得出目标物体的移动距离为 5。 本步骤中, 两个相邻帧图像之间的时间间隔是图像处理装置根据当前环 境亮度进行设置的。 具体的, 在拍照前的预览阶段, 当拍照的环境亮度较低 时, 每帧图像需要的曝光时间要相应增加。 图像处理装置根据当前的曝光时 间, 实时调整图像输出帧率, 使得图像输出帧率降低, 也即增加了两个相邻 帧图像之间的时间间隔; 反之, 当拍照的环境亮度较高时, 曝光时间要相应 缩短, 导致出帧率提高, 也即缩短了两个相邻帧图像之间的时间间隔。
第二种情况, 当目标物体保持静止状态, 且图像处理装置处于移动状态 时, 将该装置的移动速度作为目标物体的拍照移动速度。 其中, 当全部或绝大部分的关键信息点在两个相邻帧图像之间的移动距 离相同时, 可判断出目标物体保持静止状态。
此种情况下, 利用现有技术容易获取装置的移动速度, 例如, 可直接测 定该装置的移动速度, 这样, 获取的装置的移动速度即为目标物体的拍照移 动速度。 本发明对如何获取目标物体拍照移动速度不做具体限定。
第三种情况, 当目标物体和图像处理装置均处于移动状态, 且两者的移 动速度不一致时, 将目标物体与图像处理装置相对的移动速度作为目标物体 的拍照移动速度。
此种情况下, 获取目标物体的拍照移动速度包括: 获取目标物体在两个 相邻帧图像之间的移动距离; 获取两个相邻帧图像之间的时间间隔; 根据目 标物体的移动距离和所述时间间隔, 获取目标物体的拍照移动速度。
当然, 当目标物体和图像处理装置均处于移动状态, 且两者的移动速度 一致时, 由于目标物体和装置的相对移动速度为零, 使得目标物体在两个相 邻帧图像之间的移动距离为零, 从而使得所述目标物体的拍照移动速度为
此外, 为增强拍照移动速度的运算结果的平滑性和准确性, 在拍照之 前, 还可以将测算得到的目标物体在多个相邻帧图像之间的拍照移动速度结 果进行相应的平滑处理, 以便在拍照时得到更为准确的目标物体的拍照移动 速度。
对数据进行平滑处理的方法有多种, 举例而言, 可选择速度平滑公式进 行计算。 具体的, 可按照如下速度平滑公式对移动速度结果平滑处理: 速度平滑公式:
Vc = a * Vo+ ( 1-a ) * Vnow; Vo = Vc。 其中, Vc 是平滑后移动速度, Vo 是上一次计算的平滑后移动速度,
Vnow是当前计算的移动速度, a是比例系数, 其取值范围为 (0 , 1 ) 。 例如, a可取值为 0.5 , 这样当前计算得到的 Vnow, 只占最终使用的 Vc 比例的 50%, 例如之前的速度为 100, Vnow由于某种原因 (例如可能的计算 差错)为 200 , 但实际上的速度可能只有 120, 则经过该平滑公式处理后, Vc 计算得到的值就是 150, 即将 Vnow可能出现的峰值给平滑掉一些, 从而减小 与实际移动速度的误差。
S12, 根据当前拍照的环境亮度及目标物体的拍照移动速度, 确定曝光参 数和增益参数。 本发明实施例中, 曝光参数是一个表示所拍照图像的清晰度的数值, 增 益参数是一个表示拍照图像的亮度的数值, 根据获取的环境亮度的值及拍照 移动速度的值, 可确定曝光参数值和增益参数值。 其中, 曝光参数在本发明 实施例中是指曝光时间。 以下对拍照移动速度如何影响曝光参数及增益参数进行说明。 在本发明 实施例中, 在环境亮度不变的情况下, 目标物体的拍照移动速度越快, 则设 定的曝光时间也就越短。 而曝光时间变短意味着所拍照图像的亮度就会降 低, 若要保证所拍照图像的亮度, 则需要增大增益参数。 需要指出的是, 在本发明实施例中, 可以建立一个曝光参数表, 将当前 拍照的环境亮度和目标物体的拍照移动速度作为曝光参数表的输入参数, 曝 光参数作为曝光参数表的输出参数。 如图 2所示, 其中, A、 B、 C代表环境 亮度值, VI、 V2、 V3代表移动速度值, E代表曝光参数值。 当移动速度不为 零时, 三者之间的计算关系可以使用公式 =(M * 亮度 /速度)来计算, M 为一 个常量, 也可以在此计算值基础上根据实际情况进行微调, 总之, 曝光参数 值和移动速度成反比, 和环境亮度成正比。 当然, 上面的图表仅作为本发明 实施例的一种列举, 实际应用中, 例如亮度和速度都可以分为更多的级别, 本发明不做限定。 这样, 就可以根据当前拍照的环境亮度及目标物体的拍照移动速度, 通 过查找曝光参数表获取曝光参数, 由于曝光参数和增益参数相乘为一定值, 因此可以根据所述曝光参数, 获得增益参数。 需要说明的是, 曝光参数表中的数值可以预先进行设置, 便于用户在拍 照目标物体时, 根据当前的环境亮度及目标物体的拍照移动速度, 直接在预 设的曝光参数表中找到对应的曝光参数。 S13 , 根据曝光参数和增益参数, 对获取的目标物体的图像进行处理。 本步骤中, 对图像进行处理的内容包括对图像进行釆集以及釆集后的亮 度加工, 釆集及亮度加工过程同现有技术, 在此不做赘述。 在对所述图像进 行处理后, 还需将处理后的图像进行压缩和存储, 其压缩和存储过程与现有 技术相同, 在此不做赞述。 本发明实施例的图像处理方法, 首先, 获取当前拍照的环境亮度及目标 物体的拍照移动速度; 接下来, 根据当前拍照的环境亮度及目标物体的移动 速度, 确定曝光参数和增益参数; 然后, 根据曝光参数和增益参数, 对获取 的目标物体的图像进行处理。 从上可看出, 这种可通过当前拍照的环境亮度 及目标物体的拍照移动速度确定曝光参数和增益参数的方式, 避免了当所拍 照目标物体为移动物体时, 拍出的图像出现虚影或拖尾的情况, 从而使拍出 来的图像更为清晰, 有效提高图像处理效率。 实施例二 相应地, 本发明的实施例二还提供了一种图像处理装置 20 , 如图 3 所 示, 包括: 获取单元 21 , 用于获取当前拍照的环境亮度及目标物体的拍照移动速 度; 确定单元 22 , 用于根据所述获取单元 21获取的当前拍照的环境亮度及所 述目标物体的移动速度, 确定曝光参数和增益参数; 处理单元 23 , 用于根据 所述确定单元 22确定的曝光参数和增益参数, 对所述获取目标物体的图像进 行处理。 本发明实施例的图像处理装置 20, 首先, 确定单元 22根据获取单元 21 获取的当前拍照的环境亮度及目标物体的移动速度, 确定曝光参数和增益参 数; 然后, 根据确定单元 22 获取确定的曝光参数和增益参数, 处理单元 23 对所述获取的目标物体的图像进行处理。 从上可看出, 这种装置可根据当前 拍照的环境亮度及目标物体的拍照移动速度确定曝光参数和增益参数, 避免 了当所拍照目标物体为移动物体时, 拍出的图像出现虚影或拖尾的情况发 生, 从而使拍出来的图像更为清晰, 有效提高图像处理效率。 可选的, 在本发明的一个实施例中, 当目标物体移动且图像处理装置保 持静止时, 如图 4所示, 获取单元 21包括: 第一获取模块 211 , 用于获取所述目标物体在两个相邻帧图像之间的移动 距离; 第二获取模块 212 , 用于获取所述两个相邻帧图像之间的时间间隔; 第三获取模块 213 , 用于根据所述目标物体的移动距离和所述时间间隔, 获 取所述目标物体的拍照移动速度。 进一步的, 本发明的一个实施例中, 第一获取模块 211 具体用于: 确定 镜头范围内的至少一个关键信息点; 获取所述关键信息点分别在所述两个相 邻帧图像中的位置; 根据所述关键信息点分别在所述两个相邻帧图像中的位 置, 确定目标物体在两个相邻帧图像之间的移动距离。 进一步的, 本发明的一个实施例中, 处理单元 23还用于: 对拍照移动速 度进行平滑处理。 这种处理方式能够增强拍照移动速度的运算结果的平滑性 和准确性。 可选的, 在本发明的一个实施例中, 当目标物体保持静止且移动图像处 理装置时, 获取单元 21将图像处理装置的移动速度作为所述目标物体的拍照 移动速度。 可选的, 在本发明一个实施例中, 当目标物体和图像处理装置均处于移 动状态, 且两者的移动速度不一致时, 第一获取模块 211 还用于, 获取所述 目标物体在两个相邻帧图像之间的移动距离; 第二获取模块 212还用于, 获 取所述两个相邻帧图像之间的时间间隔; 第三获取模块 213 还用于, 根据所 述目标物体的移动距离和所述时间间隔, 获取所述目标物体的拍照移动速 度。
当目标物体和图像处理装置均处于移动状态, 且两者的移动速度一致 时, 由于目标物体和装置的相对移动速度为零, 使得第一获取模块 211 获取 的目标物体在两个相邻帧图像之间的移动距离为零, 从而使得第三获取模块 213获取的所述目标物体的拍照移动速度为零。 可选的, 在本发明的一个实施例中, 如图 5所示, 确定单元 22包括: 第 一参数确定模块 221 , 用于根据当前拍照的环境亮度及目标物体的移动速 度, 通过查找预设的曝光参数表确定曝光参数; 第二参数确定模块 222 , 用 于根据所述曝光参数, 确定增益参数。
需要说明的是, 本发明实施例提供的图像处理装置 20的各结构单元的具 体功能请参见前文方法实施例。
实施例三 图 6 所示为本发明提供的图像处理装置的另一种实施例, 应该理解的 是, 图示图像处理装置 50仅仅是图像处理装置的一个范例, 并且图像处理装 置 50可以具有比图中所示出的更过的或者更少的部件, 可以组合两个或更多 的部件, 或者可以具有不同的部件配置。 图中所示出的各种部件可以在包括 一个或多个信号处理和 /或专用集成电路在内的硬件、 软件、 或硬件和软件的 组合中实现。
如图 6所示, 本实施例提供的图像处理装置 50 , 包括光线传感器 51、 图 像处理器 52、 存储器 53、 通信接口 54、 总线 55、 摄像头 56。 其中, 摄像头 56内设有光线传感器 51。 光线传感器 51、 图像处理器 52、 存储器 53和通信 接口 54通过总线 55连接并完成相互间的通信。 所述总线 55可以是工业标准 体系结构 (Industry Standard Architecture, 简称为 ISA ) 总线、 外部设备互连 ( Peripheral Component, 简称为 PCI )总线或扩展工业标准体系结构( Extended Industry Standard Architecture, 简称为 EISA ) 总线等。 所述总线 55可以分为 地址总线、 数据总线、 控制总线等。 为便于表示, 图 6 中仅用一条粗线表 示, 但并不表示仅有一根总线或一种类型的总线。 其中: 存储器 53用于存储可执行程序代码, 该程序代码包括计算机操作指令。 存储器 53 可能包含高速 RAM 存储器, 也可能还包括非易失性存储器 ( non- volatile memory ) , 例如一个或多个磁盘存储器件、 闪存器件、 或其他 易失性固态存储器件。 存储器 53 可以被图像处理器 52、 通信接口 54 等访 问。 光线传感器 51 用于获取当前拍照的环境亮度。 具体地, 光线传感器 51 用于将环境光转换成电信号, 电信号经过压缩以后由存储器 53保存。
图像处理器 52 包括信号处理单元 57、 同步信号发生器 58、 编码器 59 等, 以用于: 获取目标物体的拍照移动速度; 根据目标物体的拍照移动速度 及光线传感器 51获取的当前拍照的环境亮度, 确定曝光参数和增益参数; 根 据参数和增益参数, 对摄像头 56获取目标物体的图像进行处理。 可选的, 在本发明一个实施例中, 当目标物体移动且图像处理装置 50保 持静止时, 图像处理器 52用于: 获取所述目标物体在两个相邻帧图像之间的 移动距离; 获取所述两个相邻帧图像之间的时间间隔; 根据目标物体的移动 距离和时间间隔, 确定所述目标物体的拍照移动速度。
进一步的, 在本发明一个实施例中, 图像处理器 52具体还用于: 确定镜头范围内的至少一个关键信息点; 获取关键信息点分别在两个相 邻帧图像中的位置; 根据所述关键信息点分别在所述两个相邻帧图像中的位 置, 确定目标物体在两个相邻帧图像之间的移动距离。
进一步的, 在本发明一个实施例中, 图像处理器 52还可用于对拍照移动 速度进行平滑处理。
可选的, 在本发明一个实施例中, 当目标物体保持静止且图像处理装置 50处于移动状态时, 图像处理器 52将装置 50的移动速度作为目标物体的拍 照移动速度。 可选的, 在本发明一个实施例中, 当目标物体和图像处理装置 50均处于 移动状态, 且两者的移动速度不一致时, 图像处理器 52用于: 获取所述目标 物体在两个相邻帧图像之间的移动距离; 获取所述两个相邻帧图像之间的时 间间隔; 根据所述目标物体的移动距离和所述时间间隔, 获取所述目标物体 的拍照移动速度。
当目标物体和图像处理装置 50均处于移动状态, 且两者的移动速度一致 时, 图像处理器 52获取的所述目标物体的拍照移动速度为零。 可选的, 在本发明一个实施例中, 图像处理器 52用于:
根据所述当前拍照的环境亮度及所述目标物体的移动速度, 通过存储器
53 查找预设的曝光参数表确定曝光参数, 并根据所述曝光参数, 确定增益参 数。
其中, 图像处理器 52可能是一个中央处理器(Central Processing Unit, 简 称为 CPU ) , 或者是特定集成电路(Application Specific Integrated Circuit, 简 称为 ASIC ) , 或者是被配置成实施本发明实施例的一个或多个集成电路。
需说明的是, 上述图像处理器 52除了具有上述功能之外, 还可用于执行 上述方法实施例中的其他流程, 在此不再赘述。 还需说明的是, 图像处理器 52中各功能单元的划分可以参见前述的图像 处理装置的实施例, 在此不再赘述。 相应的, 本发明实施例还提供了一种终端, 所述终端包括前述图像处理 装置的实施例中任一个实施例所述的图像处理装置。
举例而言, 本发明实施例提供的终端可以为手机、 平板电脑、 个人数字 助理或 PC等任意一种具有拍照功能的设备。
实施例四 图 7示出的是与本发明实施例提供的终端相关的手机 70的部分结构的框 图。 如图 7所示, 手机 70包括外部相机传感器 71、 微处理器 72、 存储器 73、 LCD ( Liquid Crystal Display, 液晶显示)显示屏 74、 总线 75、 ISP ( Image Signal Processor, 图像信号处理)单元 76、 图像传感器 77、 运算处理器 78以 及图像编码器 79等模块。 其中, 总线 75包括 MIPI ( Mobile Industry Processor, 移动行业处理器 ) 总线 751和 ( Iner-Integrated Circuit ) 总线 752。
本领域技术人员可以理解, 图 7 中示出的手机结构并不构成对手机的限 定, 可以包括比图示更多或更少的部件, 或者组合某些部件, 或者不同的部 件布置。
下面结合图 7对手机 70的各个构成部件进行具体的介绍: 在预览阶段, 外部相机传感器 71 可用于釆集图像, 通过 MIPI总线 751 将釆集到的每帧图像发送至微处理器 72中的 ISP单元 76。 运算处理器 78用于判断目标物体的拍照移动速度, 并将得到的拍照移动 速度结果发送到微处理器 72中; 与此同时, ISP单元 76也将光线传感器获取 的当前拍照环境亮度发送到微处理器 72中。 这样, 微处理器 72根据目标物体 的拍照移动速度和当前的拍照环境亮度, 确定拍照阶段所需的曝光参数和增 益参数。 在拍照阶段, 一方面, 微处理器 72将根据之前预览阶段得到的曝光参数 通过 总线 752发送到外部相机传感器 71中进行设置, 使得 ISP单元 76能够 按照该曝光参数釆集图像; 另一方面, 微处理器 72将增益参数发送到 ISP模 块中进行设置, 使得 ISP单元 76能够按照该增益参数对釆集的图像进行亮度 加工。 将亮度加工后的图像发送至图像编码器 79进行图像压缩, 以及存储器 73 进行图像存储, 或者经过 LCD显示屏 74进行图像显示。 在实施例一中的具体 方法可以被手机 70实施在此不再赘述。 尽管未示出, 手机 70还可以包括摄像头、 蓝牙模块等, 在此不再赘述。 本说明书中的各个实施例均釆用递进的方式描述, 各个实施例之间相同 相似的部分互相参见即可, 每个实施例重点说明的都是与其他实施例的不同 之处。 尤其, 对于装置实施例而言, 由于其基本相似于方法实施例, 所以描 述得比较简单, 相关之处参见方法实施例的部分说明即可。 需说明的是, 以上所描述的装置实施例仅仅是示意性的, 其中所述作为 部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者也可以分 布到多个网络单元上。 可以根据实际的需要选择其中的部分或者全部模块来 实现本实施例方案的目的。 另外, 本发明提供的装置实施例附图中, 模块之 间的连接关系表示它们之间具有通信连接, 具体可以实现为一条或多条通信 总线或信号线。 本领域普通技术人员在不付出创造性劳动的情况下, 即可以 理解并实施。 通过以上的实施方式的描述, 所属领域的技术人员可以清楚地了解到本 发明可借助软件加必需的通用硬件的方式来实现, 当然也可以通过专用硬件 包括专用集成电路、 专用 CPU、 专用存储器、 专用元器件等来实现。 一般情 况下, 凡由计算机程序完成的功能都可以很容易地用相应的硬件来实现, 而 且, 用来实现同一功能的具体硬件结构也可以是多种多样的, 例如模拟电 路、 数字电路或专用电路等。 但是, 对本发明而言更多情况下软件程序实现 是更佳的实施方式。 基于这样的理解, 本发明的技术方案本质上或者说对现 有技术做出贡献的部分可以以软件产品的形式体现出来, 该计算机软件产品 存储在可读取的存储介质中, 如计算机的软盘, U盘、 移动硬盘、 只读存储 器(ROM, Read-Only Memory ) 、 随机存取存储器(RAM, Random Access Memory ) 、 磁碟或者光盘等, 包括若干指令用以使得一台计算机设备(可以 是个人计算机, 服务器, 或者网络设备等)执行本发明各个实施例所述的方 法。
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限 于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易 想到变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护 范围应以所述权利要求的保护范围为准。

Claims

权 利 要 求
1、 一种图像处理方法, 其特征在于, 包括:
获取当前拍照的环境亮度及目标物体的拍照移动速度;
根据所述当前拍照的环境亮度及所述目标物体的拍照移动速度,确定曝光 参数和增益参数;
根据所述曝光参数和所述增益参数,对获取的所述目标物体的图像进行处 理。
2、 根据权利要求 1所述的方法, 其特征在于, 当所述目标物体移动且图像 处理装置保持静止时, 所述获取所述目标物体的拍照移动速度具体包括: 获取所述目标物体在两个相邻帧图像之间的移动距离;
获取所述两个相邻帧图像之间的时间间隔;
根据所述目标物体的移动距离和所述时间间隔 ,获取所述目标物体的拍照 移动速度。
3、 根据权利要求 2所述的方法, 其特征在于, 所述获取所述目标物体在两 个相邻帧图像之间的移动距离具体包括:
确定镜头范围内的至少一个关键信息点;
获取所述关键信息点分别在所述两个相邻帧图像中的位置;
根据所述关键信息点分别在所述两个相邻帧图像中的位置,确定所述目标 物体在两个相邻帧图像之间的移动距离。
4、 根据权利要求 1所述的方法, 其特征在于, 当所述目标物体保持静止且 图像处理装置处于移动状态时,将所述装置的移动速度作为所述目标物体的拍 照移动速度。
5、 根据权利要求 1所述的方法, 其特征在于,
当所述目标物体和图像处理装置均处于移动状态,且两者的移动速度不一 致时, 所述获取所述目标物体的拍照移动速度包括:
获取所述目标物体在两个相邻帧图像之间的移动距离;
获取所述两个相邻帧图像之间的时间间隔;
根据所述目标物体的移动距离和所述时间间隔 ,获取所述目标物体的拍照 移动速度; 当所述目标物体和所述图像处理装置均处于移动状态,且两者的移动速度 一致时, 所述获取的所述目标物体的拍照移动速度为零。
6、 根据权利要求 1所述的方法, 其特征在于, 所述根据所述当前拍照的环 境亮度及所述移动速度, 确定曝光参数和增益参数包括:
根据所述当前拍照的环境亮度及所述目标物体的移动速度,通过查找预设 的曝光参数表确定曝光参数;
根据所述曝光参数, 确定增益参数。
7、 根据权利要求 2或 3所述的方法, 其特征在于, 所述方法还包括: 对所述拍照移动速度进行平滑处理。
8、 一种图像处理装置, 其特征在于, 包括:
获取单元, 用于获取当前拍照的环境亮度及目标物体的拍照移动速度; 确定单元,用于根据所述获取单元获取的当前拍照的环境亮度及所述目标 物体的拍照移动速度, 确定曝光参数和增益参数;
处理单元, 用于根据所述确定单元确定的曝光参数和增益参数,对所述获 取的所述目标物体的图像进行处理。
9、 根据权利要求 8所述的装置, 其特征在于, 当所述目标物体移动且所述 图像处理装置保持静止时, 所述获取单元包括:
第一获取模块, 用于获取所述目标物体在两个相邻帧图像之间的移动距 离;
第二获取模块, 用于获取所述两个相邻帧图像之间的时间间隔; 第三获取模块,用于根据所述第一获取模块获取的目标物体的移动距离和 所述第二获取模块获取的时间间隔, 获取所述目标物体的拍照移动速度。
10、 根据权利要求 9所述的装置, 其特征在于, 所述第一获取模块具体用 于:
确定镜头范围内的至少一个关键信息点;
获取所述关键信息点分别在所述两个相邻帧图像中的位置;
根据所述关键信息点分别在所述两个相邻帧图像中的位置,确定所述目标 物体在两个相邻帧图像之间的移动距离。
11、 根据权利要求 8所述的装置, 其特征在于, 当所述目标物体保持静止 且所述图像处理装置处于移动状态时,所述获取单元将所述装置的移动速度作 为所述目标物体的拍照移动速度。
12、 根据权利要求 8所述的装置, 其特征在于,
当所述目标物体和所述图像处理装置均处于移动状态,且两者的移动速度 不一致时,
所述第一获取模块还用于,获取所述目标物体在两个相邻帧图像之间的移 动距离;
所述第二获取模块还用于, 获取所述两个相邻帧图像之间的时间间隔; 所述第三获取模块还用于, 根据所述目标物体的移动距离和所述时间间 隔, 获取所述目标物体的拍照移动速度;
当所述目标物体和所述图像处理装置均处于移动状态,且两者的移动速度 一致时, 所述第三获取模块获取的所述目标物体的拍照移动速度为零。
13、 根据权利要求 8所述的装置, 其特征在于, 所述确定单元包括: 第一参数确定模块,用于根据所述当前拍照的环境亮度及所述目标物体的 移动速度, 通过查找预设的曝光参数表确定曝光参数;
第二参数确定模块, 用于根据所述曝光参数, 确定增益参数。
14、 根据权利要求 7或 8所述的装置, 其特征在于, 所述处理单元还用于: 对所述拍照移动速度进行平滑处理。
15、 一种终端, 其特征在于, 所述终端包括权利要求 8至 14任一项所述的 图像处理装置。
PCT/CN2014/081787 2013-07-08 2014-07-08 一种图像处理方法、装置及终端 WO2015003604A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
KR1020157035933A KR20160010603A (ko) 2013-07-08 2014-07-08 이미지 처리 방법 및 장치, 그리고 단말기
EP14823179.8A EP2993888A4 (en) 2013-07-08 2014-07-08 METHOD, DEVICE AND DEVICE FOR IMAGE PROCESSING
JP2016522248A JP2016528772A (ja) 2013-07-08 2014-07-08 画像処理方法および画像処理装置、ならびに端末
US14/964,757 US20160094770A1 (en) 2013-07-08 2015-12-10 Image Processing Method and Apparatus, and Terminal

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2013102843746A CN103347152A (zh) 2013-07-08 2013-07-08 一种图像处理方法、装置及终端
CN201310284374.6 2013-07-08

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/964,757 Continuation US20160094770A1 (en) 2013-07-08 2015-12-10 Image Processing Method and Apparatus, and Terminal

Publications (1)

Publication Number Publication Date
WO2015003604A1 true WO2015003604A1 (zh) 2015-01-15

Family

ID=49281923

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/081787 WO2015003604A1 (zh) 2013-07-08 2014-07-08 一种图像处理方法、装置及终端

Country Status (6)

Country Link
US (1) US20160094770A1 (zh)
EP (1) EP2993888A4 (zh)
JP (1) JP2016528772A (zh)
KR (1) KR20160010603A (zh)
CN (1) CN103347152A (zh)
WO (1) WO2015003604A1 (zh)

Families Citing this family (36)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104580969A (zh) 2013-10-23 2015-04-29 中兴通讯股份有限公司 录像帧率调整方法和装置
CN104754238B (zh) * 2013-12-31 2018-03-23 展讯通信(上海)有限公司 一种成像控制方法及装置、成像控制系统
US10110826B2 (en) * 2014-02-25 2018-10-23 Sony Corporation Imaging with adjustment of angle of view
CN104270565B (zh) * 2014-08-29 2018-02-02 小米科技有限责任公司 图像拍摄方法、装置及设备
CN104660915B (zh) * 2015-02-09 2017-12-01 广东欧珀移动通信有限公司 全景拍照曝光的控制方法及装置
CN104853113A (zh) * 2015-05-15 2015-08-19 零度智控(北京)智能科技有限公司 自适应调节相机曝光时间的装置及方法
CN105100634B (zh) * 2015-07-09 2019-03-15 小米科技有限责任公司 图像拍摄方法及装置
CN106412214B (zh) * 2015-07-28 2019-12-10 中兴通讯股份有限公司 一种终端及终端拍摄的方法
WO2017035750A1 (zh) * 2015-08-31 2017-03-09 华为技术有限公司 一种拍摄图片的方法及装置
CN105898143B (zh) * 2016-04-27 2019-05-17 维沃移动通信有限公司 一种运动物体的抓拍方法及移动终端
CN105959583A (zh) * 2016-04-28 2016-09-21 努比亚技术有限公司 一种移动终端及其曝光方法
CN108540636A (zh) * 2017-03-06 2018-09-14 中兴通讯股份有限公司 一种基于双摄像头的拍照方法及装置
CN107181917B (zh) * 2017-04-25 2020-08-25 深圳市景阳科技股份有限公司 画面显示的方法及装置
CN108881734B (zh) * 2017-05-16 2021-03-16 杭州海康威视数字技术股份有限公司 图像采集方法及装置
CN107566719A (zh) * 2017-08-24 2018-01-09 广东小天才科技有限公司 运动防抖拍照模式的切换方法、装置、设备及存储介质
WO2019061546A1 (zh) * 2017-09-30 2019-04-04 深圳传音通讯有限公司 移动终端的拍照方法、装置及计算机可读存储介质
CN108200354B (zh) * 2018-03-06 2020-09-25 Oppo广东移动通信有限公司 控制方法及装置、成像设备、计算机设备及可读存储介质
CN108762465B (zh) * 2018-03-27 2020-06-30 Oppo广东移动通信有限公司 帧率自适应调整方法、装置、存储介质及智能终端
CN110536073B (zh) * 2018-05-25 2021-05-11 神讯电脑(昆山)有限公司 车用取像装置及影像撷取方法
CN109104580A (zh) * 2018-10-18 2018-12-28 珠海格力电器股份有限公司 智能终端摄像头快速显示系统及其方法与智能终端
US10785419B2 (en) * 2019-01-25 2020-09-22 Pixart Imaging Inc. Light sensor chip, image processing device and operating method thereof
CN111107292B (zh) * 2019-02-28 2021-05-18 华为技术有限公司 一种录像帧率的控制方法、移动终端及计算机存储介质
CN110225247B (zh) * 2019-05-29 2021-06-15 联想(北京)有限公司 一种图像处理方法及电子设备
CN110460782B (zh) * 2019-08-28 2021-07-20 北京海益同展信息科技有限公司 信息采集装置、方法、巡检机器人和存储介质
CN112637476A (zh) * 2019-09-24 2021-04-09 中兴通讯股份有限公司 一种视频录制方法、装置、终端以及计算机可读存储介质
CN112804463A (zh) * 2019-10-28 2021-05-14 中兴通讯股份有限公司 一种曝光时间控制方法、装置、终端及可读存储介质
CN113034069A (zh) * 2019-12-25 2021-06-25 菜鸟智能物流控股有限公司 一种物流对象的处理方法及物流管理设备
US11363188B2 (en) * 2020-06-17 2022-06-14 Microsoft Technology Licensing, Llc Motion-based operation of imaging devices
CN112261579A (zh) * 2020-10-22 2021-01-22 珠海格力电器股份有限公司 设备节能控制方法、装置、设备及计算机可读介质
CN112492219A (zh) * 2020-12-17 2021-03-12 浙江大华技术股份有限公司 一种图像采集方法、终端以及计算机可读存储介质
CN113099122A (zh) * 2021-03-31 2021-07-09 维沃移动通信有限公司 拍摄方法、装置、设备和存储介质
CN113422902B (zh) * 2021-05-31 2023-01-06 惠州华阳通用电子有限公司 一种摄像头帧率调节方法
CN113489909B (zh) * 2021-07-30 2024-01-19 维沃移动通信有限公司 拍摄参数的确定方法、装置及电子设备
CN113992904B (zh) * 2021-09-22 2023-07-21 联想(北京)有限公司 一种信息处理方法、装置、电子设备和可读存储介质
CN115134536B (zh) * 2022-06-28 2024-05-03 维沃移动通信有限公司 拍摄方法及其装置
CN117395378B (zh) * 2023-12-07 2024-04-09 北京道仪数慧科技有限公司 路产采集方法及采集系统

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047786A (zh) * 2006-03-27 2007-10-03 精工爱普生株式会社 摄像装置、摄像系统以及摄像方法
CN101963738A (zh) * 2009-07-21 2011-02-02 华晶科技股份有限公司 动态影像摄像方法
CN102069633A (zh) * 2009-10-30 2011-05-25 佳能株式会社 移动检测装置和记录装置
CN102984461A (zh) * 2011-09-02 2013-03-20 佳能株式会社 图像拍摄装置及其控制方法

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3642793B2 (ja) * 1992-11-25 2005-04-27 ソニー株式会社 固体撮像装置及び撮像装置の制御方法
DE10328566B4 (de) * 2003-06-25 2005-06-30 Infineon Technologies Ag Verfahren und Vorrichtung zum Abtasten eines Datensignals
US20060170816A1 (en) * 2005-01-28 2006-08-03 Silverstein D A Method and system for automatically adjusting exposure parameters of an imaging device
US7546026B2 (en) * 2005-10-25 2009-06-09 Zoran Corporation Camera exposure optimization techniques that take camera and scene motion into account
US7903168B2 (en) * 2006-04-06 2011-03-08 Eastman Kodak Company Camera and method with additional evaluation image capture based on scene brightness changes
JP4961850B2 (ja) * 2006-06-15 2012-06-27 ソニー株式会社 動き検出方法、動き検出方法のプログラム、動き検出方法のプログラムを記録した記録媒体及び動き検出装置
US7697836B2 (en) * 2006-10-25 2010-04-13 Zoran Corporation Control of artificial lighting of a scene to reduce effects of motion in the scene on an image being acquired
WO2009008164A1 (ja) * 2007-07-09 2009-01-15 Panasonic Corporation デジタル一眼レフカメラ
US8063942B2 (en) * 2007-10-19 2011-11-22 Qualcomm Incorporated Motion assisted image sensor configuration
ES2585214T3 (es) * 2008-09-22 2016-10-04 Freedom Scientific Inc. Sistemas y métodos para formar imagen de objetos
JP5683851B2 (ja) * 2009-08-20 2015-03-11 株式会社ザクティ 撮像装置及び画像処理装置
JP5896102B2 (ja) * 2011-03-30 2016-03-30 カシオ計算機株式会社 撮像装置、撮像制御方法、及びプログラム

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047786A (zh) * 2006-03-27 2007-10-03 精工爱普生株式会社 摄像装置、摄像系统以及摄像方法
CN101963738A (zh) * 2009-07-21 2011-02-02 华晶科技股份有限公司 动态影像摄像方法
CN102069633A (zh) * 2009-10-30 2011-05-25 佳能株式会社 移动检测装置和记录装置
CN102984461A (zh) * 2011-09-02 2013-03-20 佳能株式会社 图像拍摄装置及其控制方法

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2993888A4 *

Also Published As

Publication number Publication date
EP2993888A1 (en) 2016-03-09
KR20160010603A (ko) 2016-01-27
CN103347152A (zh) 2013-10-09
JP2016528772A (ja) 2016-09-15
EP2993888A4 (en) 2016-03-16
US20160094770A1 (en) 2016-03-31

Similar Documents

Publication Publication Date Title
WO2015003604A1 (zh) 一种图像处理方法、装置及终端
AU2019326496B2 (en) Method for capturing images at night, apparatus, electronic device, and storage medium
US10827140B2 (en) Photographing method for terminal and terminal
WO2017215501A1 (zh) 图像降噪处理方法、装置及计算机存储介质
US9591237B2 (en) Automated generation of panning shots
EP3599760A1 (en) Image processing method and apparatus
JP6066536B2 (ja) ゴーストのない高ダイナミックレンジ画像の生成
CN112565589B (zh) 一种拍照预览方法、装置、存储介质和电子设备
TWI602152B (zh) 影像擷取裝置及其影像處理方法
TWI530911B (zh) 動態曝光調整方法及其電子裝置
US9888170B2 (en) Modifying image parameters using wearable device input
US10440278B2 (en) Imaging device and system including imaging device and server
WO2015081556A1 (zh) 双镜头设备的拍照方法及双镜头设备
JP2018504790A (ja) ハイダイナミックレンジ画像の生成方法及び装置
WO2015081555A1 (zh) 双镜头设备的拍照方法及双镜头设备
CN107704798B (zh) 图像虚化方法、装置、计算机可读存储介质和计算机设备
JP2009212899A (ja) 撮像装置
CN112822412B (zh) 曝光方法、装置、电子设备和存储介质
WO2019214574A1 (zh) 图像拍摄方法、装置及电子终端
CN105635568B (zh) 一种移动终端中的图像处理方法和移动终端
WO2015024367A1 (zh) 一种拍摄图像的处理方法及装置
JP2010016826A (ja) 画像処理オペレーションを効率的に実行するためのシステム及び方法
WO2016145831A1 (zh) 图像的获取方法及装置
WO2016029380A1 (zh) 一种图像处理方法、计算机存储介质、装置及终端
WO2017133075A1 (zh) 相位差的确定方法及装置

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

Country of ref document: EP

Kind code of ref document: A1

REEP Request for entry into the european phase

Ref document number: 2014823179

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2014823179

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 20157035933

Country of ref document: KR

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2016522248

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE