CN103516984A - Method and device for intelligently switching to HDR mode of camera - Google Patents

Method and device for intelligently switching to HDR mode of camera Download PDF

Info

Publication number
CN103516984A
CN103516984A CN201310417344.8A CN201310417344A CN103516984A CN 103516984 A CN103516984 A CN 103516984A CN 201310417344 A CN201310417344 A CN 201310417344A CN 103516984 A CN103516984 A CN 103516984A
Authority
CN
China
Prior art keywords
value
brightness value
camera
pixel
default
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310417344.8A
Other languages
Chinese (zh)
Inventor
卓世杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201310417344.8A priority Critical patent/CN103516984A/en
Publication of CN103516984A publication Critical patent/CN103516984A/en
Pending legal-status Critical Current

Links

Landscapes

  • Studio Devices (AREA)

Abstract

The invention relates to a method and device for intelligently switching to an HDR mode of a camera. Computer program instructions are used for controlling a computer to complete the camera method for intelligently switching the HDR mode through establishing of a functional module framework, and the computer program instructions are stored in computer readable storage media. The method includes the steps that the duty ratio of pixels of which the brightness value is smaller than a preset low brightness value and the duty ratio of pixels of which the brightness value is larger than a preset high brightness value in an image of a current scene of a camera are estimated, and switching to the HDR mode can be achieved only when the duty ratio of the pixels of which the brightness value is smaller than the preset low brightness value is larger than a preset low brightness ratio threshold value and the duty ratio of the pixels of which the brightness value is larger than the preset high brightness value is larger than a preset high brightness ratio threshold value. In combination with the characteristics of the HDR mode, the estimation of the duty ratio of the pixels of which the brightness value is smaller than the preset low brightness value and the duty ratio of the pixels of which the brightness value is larger than the preset high brightness value in the image of the current scene can really reflect brightness distribution conditions of the actual scene, and accurately judge whether or not switching to the HDR mode needs to be performed to take photos.

Description

Camera intelligence is switched method and the device of HDR pattern
Technical field
The present invention relates to a kind of camera intelligence and switch the method for HDR pattern, the method, by setting up functional module construction, is controlled computer system by computer program instructions and is completed, and these computer program instructions are stored in computer-readable recording medium.
Background technology
When the general mode of use camera is taken pictures, if it is too large that the picture brightness of current scene differs, the photo of taking the just bright place of easy appearance is crossed situation bright or that dark place is excessively dark, thereby lose the details of Liang Chuhuo dark place, affected the quality of photo, if now want, in photo, retain details as much as possible, need to adopt HDR(High-Dynamic Range, high dynamic range) pattern is taken pictures, because the photo that HDR pattern is taken pictures and obtained, compare the photo that general mode is taken pictures and obtained, more dynamic range and image detail can be provided.The principle of HDR is, according to LDR image (the Low-Dynamic Range of different time for exposure, be called for short LDR, low dynamic range echograms), utilize the LDR image of each corresponding best details of time for exposure to synthesize final HDR image, the HDR image obtaining like this can the better visual effect that must reflect in true environment.
Camera of today comprises multiple exposal model, wherein just there is HDR pattern, but when taking pictures, need user's manual switchover exposal model, most domestic consumer does not have professional photographic knowledge and technical ability, these domestic consumers also do not know the photo which scene should just can be taken by HDR pattern, therefore manual switchover HDR pattern is intelligent not, and inconvenient domestic consumer is used.
Summary of the invention
The object of this invention is to provide a kind of method that can facilitate the camera intelligence switching HDR of the domestic consumer's use that does not possess professional photographic knowledge and technical ability.
For achieving the above object, the invention provides following technical scheme.
Camera intelligence is switched the method for HDR pattern, add up brightness value in the image of described camera current scene and be less than the accounting of pixel of default low bright value and the accounting that brightness value is greater than the pixel of default highlighted value, when the accounting that is less than the pixel of default low bright value at brightness value is greater than accounting that default low bright proportion threshold value and brightness value be greater than the pixel of default highlighted value and is greater than default highlighted proportion threshold value, be switched to HDR pattern.
Wherein, by the data in brightness histogram, add up brightness value in the image of described camera current scene and be less than the accounting of pixel of default low bright value and the accounting that brightness value is greater than the pixel of default highlighted value.
Wherein, default low bright proportion threshold value equates with default highlighted proportion threshold value.
Wherein, described brightness value is the Y value of YUV color space.
Wherein, described current scene be the scene of preview before described camera is taken pictures or take pictures after the scene of the photo that obtains.
The invention has the beneficial effects as follows: the feature that is applicable to the scene that light and shade difference is large in conjunction with HDR pattern, in the image of statistics current scene, brightness value is less than the accounting of the pixel of presetting low bright value and the accounting that brightness value is greater than the pixel of default highlighted value, the Luminance Distribution situation that can reflect truly actual scene, determine whether that exactly need to be switched to HDR pattern takes pictures, without artificial judgment and switching; In addition, the brightness histogram automatically generating by camera is added up, and without carrying out, loaded down with trivial details computing and statistics are accurate, saving resource and photo opporunity.
Embodiment
Below in conjunction with embodiment, the present invention is elaborated.
It is example that the present embodiment be take the camera of mobile phone.The HDR pattern of camera is applicable to take the scene that light and shade difference is large, therefore whether current scene needs to switch to HDR pattern and takes, whether light and shade difference is large need to first to judge current scene, camera of the present invention intelligence switch HDR pattern method most critical be judge current scene light and shade difference whether enough greatly.For this reason, camera intelligence of the present invention is switched the method for HDR pattern, first be exactly the ratio that the pixel of adding up low bright area in the image of current scene of camera accounts for the pixel of whole image, the i.e. accounting of the pixel of low bright area, also to add up the accounting of the pixel of highlight regions simultaneously, the low bright area here refers to that the brightness value of pixel is less than default Di Liangzhi region, in like manner, highlight regions refers to that the brightness value of pixel is greater than default highlighted Zhi region, default low bright value and default highlighted value are the brightness values of default settings, default low bright value and default highlighted value can draw according to historical statistical data, also can debug and draw voluntarily, can be as required in practical application or actual effect select.Particularly, more employing YUV color space in mobile phone, so the brightness value in the present embodiment specifically refers to the Y value in YUV color space.Count the accounting of pixel of low bright area and the accounting of the pixel of highlight regions, just easily found out the situation of the light and shade difference in the image of current scene, now again the accounting of the pixel of low bright area and default low bright proportion threshold value are compared, the accounting of the pixel of highlight regions and default highlighted proportion threshold value are compared simultaneously, default low bright proportion threshold value and default highlighted proportion threshold value all in advance rule of thumb or debug results set, default low bright proportion threshold value and default highlighted proportion threshold value can equate, also can be unequal, specifically according to actual conditions, set.When the accounting that is greater than the pixel of default low bright proportion threshold value and highlight regions when the accounting of the pixel of low bright area is greater than default highlighted proportion threshold value, show that current scene light and shade difference is large, camera is just switched to HDR pattern and takes pictures.It should be noted that, the accounting that is greater than the pixel of default low bright proportion threshold value and highlight regions in the accounting of the pixel of low bright area is just switched to HDR pattern while being greater than default highlighted proportion threshold value, this is because in other cases, the accounting that is less than the pixel of default low bright proportion threshold value and highlight regions such as the accounting of the pixel of low bright area is greater than default highlighted proportion threshold value, or the accounting that the accounting of the pixel of low bright area is greater than the pixel of default low bright proportion threshold value and highlight regions is less than default highlighted proportion threshold value, or the accounting that the accounting of the pixel of low bright area is less than the pixel of default low bright proportion threshold value and highlight regions is less than default highlighted proportion threshold value, can only show that current scene is partially bright or partially dark or do not work also not dark, can not show that current scene light and shade difference is very large, therefore add up the accounting of pixel of low bright area and the accounting of the pixel of highlight regions in the image of current scene, the Luminance Distribution situation that can reflect truly actual scene, meet the feature that HDR pattern is taken pictures, thereby determine whether that exactly need to be switched to HDR pattern takes pictures, without artificial judgment and switching.
Wherein, described current scene be the scene of preview before camera is taken pictures or take pictures after the scene of the photo that obtains, the accounting of pixel of low bright area and the accounting of the pixel of highlight regions in the image of statistics current scene, need to first obtain the Luminance Distribution situation of pixel in the image of current scene, camera intelligence of the present invention is switched the method for HDR pattern, to add up by the data in the automatic brightness histogram generating of camera, according to default low bright value and default highlighted value, only need to be less than in cumulative brightness histogram the pixel quantity and the pixel quantity that is greater than each brightness value of default highlighted value of each brightness value of presetting low bright value, and then calculate respectively the pixel accounting of low bright area and the pixel accounting of highlight regions.Because camera is when the preview or take pictures and obtain photo, conventionally all can automatically generate brightness histogram, therefore without again going the brightness value that obtains each pixel to add up, greatly reduce operand, not only save resource, also reduced the photo opporunity of camera.
The method providing herein, all or part of step wherein can, by setting up functional module construction, be controlled computer system by computer program instructions and complete.These computer program instructions are stored in computer-readable recording medium.
Finally should be noted that; above embodiment is only in order to illustrate technical scheme of the present invention; but not limiting the scope of the invention; although the present invention has been done to explain with reference to preferred embodiment; those of ordinary skill in the art is to be understood that; can modify or be equal to replacement technical scheme of the present invention, and not depart from essence and the scope of technical solution of the present invention.

Claims (10)

1. camera intelligence is switched the method for HDR pattern, it is characterized in that, add up brightness value in the image of described camera current scene and be less than the accounting of pixel of default low bright value and the accounting that brightness value is greater than the pixel of default highlighted value, when the accounting that is less than the pixel of default low bright value at brightness value is greater than accounting that default low bright proportion threshold value and brightness value be greater than the pixel of default highlighted value and is greater than default highlighted proportion threshold value, be switched to HDR pattern.
2. camera intelligence according to claim 1 is switched the method for HDR pattern, it is characterized in that, by the data in brightness histogram, add up brightness value in the image of described camera current scene and be less than the accounting of pixel of default low bright value and the accounting that brightness value is greater than the pixel of default highlighted value.
3. camera intelligence according to claim 1 is switched the method for HDR pattern, it is characterized in that, default low bright proportion threshold value equates with default highlighted proportion threshold value.
4. camera intelligence according to claim 1 is switched the method for HDR pattern, it is characterized in that, described brightness value is the Y value of YUV color space.
5. camera according to claim 1 intelligence is switched the method for HDR pattern, it is characterized in that, described current scene be the scene of preview before described camera is taken pictures or take pictures after the scene of the photo that obtains.
6. camera intelligence is switched the device of HDR pattern, it is characterized in that, comprises with lower device:
It adds up device A. brightness value in the image of described camera current scene and is less than the accounting of pixel of default low bright value and the accounting that brightness value is greater than the pixel of default highlighted value;
When its accounting that is less than the pixel of default low bright value at brightness value of device B is greater than accounting that default low bright proportion threshold value and brightness value be greater than the pixel of default highlighted value and is greater than default highlighted proportion threshold value, be switched to HDR pattern.
7. camera intelligence according to claim 6 is switched the device of HDR pattern, it is characterized in that, device A particularly, adds up brightness value in the image of described camera current scene and is less than the accounting of pixel of default low bright value and the accounting that brightness value is greater than the pixel of default highlighted value by the data in brightness histogram.
8. camera intelligence according to claim 6 is switched the device of HDR pattern, it is characterized in that, default low bright proportion threshold value equates with default highlighted proportion threshold value.
9. camera intelligence according to claim 6 is switched the device of HDR pattern, it is characterized in that, described brightness value is the Y value of YUV color space.
10. camera according to claim 6 intelligence is switched the device of HDR pattern, it is characterized in that, described current scene be the scene of preview before described camera is taken pictures or take pictures after the scene of the photo that obtains.
CN201310417344.8A 2013-09-13 2013-09-13 Method and device for intelligently switching to HDR mode of camera Pending CN103516984A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310417344.8A CN103516984A (en) 2013-09-13 2013-09-13 Method and device for intelligently switching to HDR mode of camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310417344.8A CN103516984A (en) 2013-09-13 2013-09-13 Method and device for intelligently switching to HDR mode of camera

Publications (1)

Publication Number Publication Date
CN103516984A true CN103516984A (en) 2014-01-15

Family

ID=49898932

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310417344.8A Pending CN103516984A (en) 2013-09-13 2013-09-13 Method and device for intelligently switching to HDR mode of camera

Country Status (1)

Country Link
CN (1) CN103516984A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104883504A (en) * 2015-06-05 2015-09-02 广东欧珀移动通信有限公司 Method and device for opening HDR (high-dynamic range) function on intelligent terminal
CN105376490A (en) * 2015-11-19 2016-03-02 浙江宇视科技有限公司 Mode switching method, mode switching apparatus and terminal device using mode switching method
CN105915791A (en) * 2016-05-03 2016-08-31 广东欧珀移动通信有限公司 Electronic device control method and device, and electronic device
CN106067177A (en) * 2016-06-15 2016-11-02 深圳市万普拉斯科技有限公司 HDR scene method for detecting and device
CN106572311A (en) * 2016-11-11 2017-04-19 努比亚技术有限公司 Shooting apparatus and method thereof
CN106961550A (en) * 2017-03-07 2017-07-18 浙江大华技术股份有限公司 A kind of changing method and device of shooting state
US10616499B2 (en) 2016-07-29 2020-04-07 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method and device for capturing high dynamic range image, and electronic device
CN111263079A (en) * 2020-02-18 2020-06-09 Oppo广东移动通信有限公司 Image processing method, image processing device, storage medium and electronic equipment
US11399136B2 (en) * 2018-09-19 2022-07-26 Gopro, Inc. Automated camera mode selection
CN115767262A (en) * 2022-10-31 2023-03-07 华为技术有限公司 Photographing method and electronic equipment
CN117651221A (en) * 2022-08-09 2024-03-05 荣耀终端有限公司 Video processing method and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1904999A (en) * 2005-07-27 2007-01-31 精工爱普生株式会社 Moving image display device and moving image display method
CN101365071A (en) * 2007-09-27 2009-02-11 豪威科技有限公司 Double-model camera scheme, equipment, system and method
CN103024279A (en) * 2012-12-27 2013-04-03 上海华勤通讯技术有限公司 Camera brightness regulating device and implementation method thereof
CN103222259A (en) * 2010-09-30 2013-07-24 苹果公司 High dynamic range transition
CN103220431A (en) * 2013-05-07 2013-07-24 深圳市中兴移动通信有限公司 Method and device for automatically switching photographing mode

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1904999A (en) * 2005-07-27 2007-01-31 精工爱普生株式会社 Moving image display device and moving image display method
CN101365071A (en) * 2007-09-27 2009-02-11 豪威科技有限公司 Double-model camera scheme, equipment, system and method
CN103222259A (en) * 2010-09-30 2013-07-24 苹果公司 High dynamic range transition
CN103024279A (en) * 2012-12-27 2013-04-03 上海华勤通讯技术有限公司 Camera brightness regulating device and implementation method thereof
CN103220431A (en) * 2013-05-07 2013-07-24 深圳市中兴移动通信有限公司 Method and device for automatically switching photographing mode

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104883504A (en) * 2015-06-05 2015-09-02 广东欧珀移动通信有限公司 Method and device for opening HDR (high-dynamic range) function on intelligent terminal
CN104883504B (en) * 2015-06-05 2018-06-01 广东欧珀移动通信有限公司 Open the method and device of high dynamic range HDR functions on intelligent terminal
CN105376490A (en) * 2015-11-19 2016-03-02 浙江宇视科技有限公司 Mode switching method, mode switching apparatus and terminal device using mode switching method
CN105376490B (en) * 2015-11-19 2019-03-12 浙江宇视科技有限公司 The terminal device of one mode switching method, device and use pattern switching method
CN105915791A (en) * 2016-05-03 2016-08-31 广东欧珀移动通信有限公司 Electronic device control method and device, and electronic device
CN105915791B (en) * 2016-05-03 2019-02-05 Oppo广东移动通信有限公司 Electronic apparatus control method and device, electronic device
CN106067177A (en) * 2016-06-15 2016-11-02 深圳市万普拉斯科技有限公司 HDR scene method for detecting and device
US10616499B2 (en) 2016-07-29 2020-04-07 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method and device for capturing high dynamic range image, and electronic device
US10623654B2 (en) 2016-07-29 2020-04-14 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method and device for capturing high dynamic range image, and electronic device
CN106572311A (en) * 2016-11-11 2017-04-19 努比亚技术有限公司 Shooting apparatus and method thereof
CN106961550A (en) * 2017-03-07 2017-07-18 浙江大华技术股份有限公司 A kind of changing method and device of shooting state
CN106961550B (en) * 2017-03-07 2020-02-14 浙江大华技术股份有限公司 Camera shooting state switching method and device
US11399136B2 (en) * 2018-09-19 2022-07-26 Gopro, Inc. Automated camera mode selection
US20220360711A1 (en) * 2018-09-19 2022-11-10 Gopro, Inc. Automated camera mode selection
US11785339B2 (en) * 2018-09-19 2023-10-10 Gopro, Inc. Automated camera mode selection
US20240015397A1 (en) * 2018-09-19 2024-01-11 Gopro, Inc. Automated camera mode selection
CN111263079A (en) * 2020-02-18 2020-06-09 Oppo广东移动通信有限公司 Image processing method, image processing device, storage medium and electronic equipment
CN111263079B (en) * 2020-02-18 2021-06-15 Oppo广东移动通信有限公司 Image processing method, image processing device, storage medium and electronic equipment
CN117651221A (en) * 2022-08-09 2024-03-05 荣耀终端有限公司 Video processing method and electronic equipment
CN115767262A (en) * 2022-10-31 2023-03-07 华为技术有限公司 Photographing method and electronic equipment
CN115767262B (en) * 2022-10-31 2024-01-16 华为技术有限公司 Photographing method and electronic equipment
WO2024093545A1 (en) * 2022-10-31 2024-05-10 华为技术有限公司 Photographing method and electronic device

Similar Documents

Publication Publication Date Title
CN103516984A (en) Method and device for intelligently switching to HDR mode of camera
US11375128B2 (en) Method for obtaining exposure compensation values of high dynamic range image, terminal device and non-transitory computer-readable storage medium
CN111418201B (en) Shooting method and equipment
US9621741B2 (en) Techniques for context and performance adaptive processing in ultra low-power computer vision systems
US20190007589A1 (en) Camera initialization for multiple camera devices
CN105578068B (en) A kind of generation method of high dynamic range images, device and mobile terminal
CN102946513B (en) A kind of method, device and terminal starting filming apparatus high dynamic range function
US20140240531A1 (en) Image capture apparatus that controls photographing according to photographic scene
TW201704836A (en) Exposure control system and method thereof
CN106412534B (en) A kind of brightness of image adjusting method and device
US10154198B2 (en) Power saving techniques for an image capture device
CN102291538A (en) Automatic exposure method and control device of camera
CN105744174A (en) Selfie method and device and mobile terminal
CN106550227B (en) A kind of image saturation method of adjustment and device
JP2018517369A (en) Dynamic frame skip for auto white balance
CN103945201A (en) IR-Cut optical filter switching method, device and camera
CN105306806A (en) Mobile terminal and photographing method thereof
CN105025283A (en) Novel color saturation adjusting method and system and mobile terminal
CN105323382B (en) A kind of screen light compensation method, device and mobile terminal
CN108540636A (en) A kind of photographic method and device based on dual camera
CN103440658A (en) Method and device for automatically removing purple boundaries of photos
US11568526B2 (en) Dual sensor imaging system and imaging method thereof
US9392181B2 (en) Image capture apparatus and method of controlling the same
KR101146015B1 (en) Image processing method for backlight image judgment and image compensation on cell phone camera
US20190052803A1 (en) Image processing system, imaging apparatus, image processing apparatus, control method, and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140115