CN105407295B - Mobile terminal filming apparatus and method - Google Patents

Mobile terminal filming apparatus and method Download PDF

Info

Publication number
CN105407295B
CN105407295B CN201510731102.5A CN201510731102A CN105407295B CN 105407295 B CN105407295 B CN 105407295B CN 201510731102 A CN201510731102 A CN 201510731102A CN 105407295 B CN105407295 B CN 105407295B
Authority
CN
China
Prior art keywords
light
photo
brightness
highlights
dark portion
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510731102.5A
Other languages
Chinese (zh)
Other versions
CN105407295A (en
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201510731102.5A priority Critical patent/CN105407295B/en
Publication of CN105407295A publication Critical patent/CN105407295A/en
Priority to PCT/CN2016/103237 priority patent/WO2017071558A1/en
Application granted granted Critical
Publication of CN105407295B publication Critical patent/CN105407295B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/71Circuitry for evaluating the brightness variation
    • 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
    • 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

Landscapes

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

Abstract

The invention discloses a kind of mobile terminal filming apparatus and method, which includes: the first shooting module, for when detecting photographing instruction, control mobile terminal to shoot current scene, acquisition original photo;Light for determining dark portion and highlights in original photo, and obtains the practical light ratio of the original photo than obtaining module;Light than comparison module, for compare practical light than with the expection light ratio that prestores, obtain the practical light than the difference with expected light ratio;Light intensity adjusting module, the flash intensity of the flash lamp for adjusting mobile terminal according to difference, and control mobile terminal and current scene is shot again with flash intensity adjusted, obtain light filling photo;The practical light ratio of original photo is adjusted to expected light ratio for carrying out local light filling according to dark portion or highlights of the light filling photo to original photo by supplementary lighting module.The present invention realizes the adjustment to mobile terminal shooting photo light ratio in no secondary light source and reflector, makes to shoot photo better effect.

Description

Mobile terminal filming apparatus and method
Technical field
The present invention relates to information of mobile terminal interaction technique field more particularly to a kind of mobile terminal filming apparatus and sides Method.
Background technique
In current technique for taking, (light is than referring to the average brightness and highlights of dark portion in photo for the photo light ratio of shooting The ratio between average brightness) generally directly determined by the light conditions of shooting environmental, or can only be by the secondary light source of profession and anti- Tabula rasa regulates and controls the light ratio of shooting environmental, still, when mobile terminal user shoots outdoors, will not generally carry Secondary light source and reflector expensive, inconvenient to carry, that be easy breakage, so that user can not easily adjust shooting photo Light ratio causes shooting photo, especially portrait photo, ineffective.
Summary of the invention
The main purpose of the present invention is to provide a kind of mobile terminal filming apparatus and methods, it is intended to which solution can not be easily The light of adjustment shooting photo is than, the ineffective technical problem of shooting photo.
To achieve the above object, the present invention provides a kind of mobile terminal filming apparatus, the mobile terminal filming apparatus packet It includes:
First shooting module, for when detecting photographing instruction, control mobile terminal shooting current scene to be obtained original Photo;
Light for determining dark portion and highlights in the original photo, and obtains the reality of the original photo than obtaining module Border light ratio;
Light than comparison module, for the practical light than with the expection light ratio that prestores, obtain the practical light ratio and pre- The difference of phase light ratio;
Light intensity adjusting module, the flash intensity of the flash lamp for adjusting mobile terminal according to the difference, and control shifting Dynamic terminal shoots current scene with flash intensity adjusted again, obtains light filling photo;
Supplementary lighting module will for carrying out local light filling according to dark portion or highlights of the light filling photo to original photo The practical light ratio of the original photo is adjusted to expected light ratio.
Preferably, the supplementary lighting module includes:
First judging unit, for judging the expected light than whether being less than practical light ratio;
First acquisition unit, for obtaining dark portion in the light filling photo when the expected light ratio is less than practical light ratio Brightness;
The first adjustment unit, for being dark portion in the light filling photo by the brightness adjustment of dark portion in the original photo The practical light ratio of the original photo is adjusted to expected light ratio by brightness.
Preferably, the supplementary lighting module further include:
Second acquisition unit, for obtaining in the light filling photo when the expected light ratio is more than or equal to practical light ratio The brightness of highlights;
Second judgment unit leads to the bright of overexposure for judging whether the brightness of the light filling photo middle light is greater than Spend extreme value;
Second adjustment unit will be described original if the brightness for the light filling photo middle light is greater than threshold brightness The brightness adjustment of photo middle light is the threshold brightness, and corresponds to the brightness for adjusting dark portion in the original photo, will be described The practical light ratio of original photo is adjusted to expected light ratio;
Third adjustment unit will be described if the brightness for the light filling photo middle light is less than or equal to threshold brightness The brightness adjustment of original photo middle light is the brightness of the light filling photo middle light, by the practical light ratio of the original photo It is adjusted to expected light ratio.
Preferably, the light includes: than obtaining module
Determination unit, for determining dark portion and highlights in the original photo;
Light is than acquiring unit, for obtaining the brightness of the brightness of dark portion and highlights in the original photo, and it is dark according to this The brightness in portion and the brightness of highlights obtain the practical light ratio of the original photo.
Preferably, the determination unit is also used to:
According to the light and shade distribution situation of the original photo, the spare bright-dark cut of preset number is generated;
According to the spare bright-dark cut, the dark portion and highlights combination of preset number are obtained;
Light is selected from the dark portion for obtaining preset number and highlights combination than maximum dark portion and highlights combination conduct The dark portion and highlights of the original photo.
To achieve the above object, the present invention also provides a kind of mobile terminal image pickup method, the mobile terminal image pickup methods Include:
When detecting photographing instruction, control mobile terminal shoots current scene, obtains original photo;
It determines the dark portion and highlights in the original photo, and obtains the practical light ratio of the original photo;
Compare the practical light than with the expection light ratio that prestores, obtain the practical light than the difference with expected light ratio;
The flash intensity of the flash lamp of mobile terminal is adjusted according to the difference, and controls mobile terminal with sudden strain of a muscle adjusted Luminous intensity shoots current scene again, obtains light filling photo;
Local light filling is carried out according to dark portion or highlights of the light filling photo to original photo, by the original photo Practical light ratio is adjusted to expected light ratio.
Preferably, described that local light filling is carried out according to dark portion or highlights of the light filling photo to original photo, by institute It states the step of the practical light ratio of original photo is adjusted to expected light ratio and includes:
Judge the expected light than whether being less than practical light ratio;
When the expected light ratio is less than practical light ratio, the brightness of dark portion in the light filling photo is obtained;
It is the brightness of dark portion in the light filling photo by the brightness adjustment of dark portion in the original photo, it will be described original The practical light ratio of photo is adjusted to expected light ratio.
Preferably, it is described judge the expected light than whether be less than practical light ratio the step of after further include:
When the expected light ratio is more than or equal to practical light ratio, the brightness of the light filling photo middle light is obtained;
Judge whether the brightness of the light filling photo middle light is greater than the threshold brightness for leading to overexposure;
If the brightness of the light filling photo middle light is greater than threshold brightness, by the brightness tune of the original photo middle light Whole is the threshold brightness, and corresponds to the brightness for adjusting dark portion in the original photo, by the practical light ratio of the original photo It is adjusted to expected light ratio;
If the brightness of the light filling photo middle light is less than or equal to threshold brightness, by the bright of the original photo middle light Degree is adjusted to the brightness of the light filling photo middle light, and the practical light ratio of the original photo is adjusted to expected light ratio.
Preferably, dark portion and highlights in the determination original photo, and obtain the practical light ratio of the original photo Step includes:
Determine dark portion and highlights in the original photo;
Obtain the brightness of the brightness of dark portion and highlights in the original photo, and according to the bright of the brightness of the dark portion and highlights Degree, obtains the practical light ratio of the original photo.
Preferably, dark portion and the step of highlights, include: in the determination original photo
According to the light and shade distribution situation of the original photo, the spare bright-dark cut of preset number is generated;
According to the spare bright-dark cut, the dark portion and highlights combination of preset number are obtained;
Light is selected from the dark portion for obtaining preset number and highlights combination than maximum dark portion and highlights combination conduct The dark portion and highlights of the original photo.
The present invention by when user presses shutter and shoots current scene, judge automatically the practical light of original photo than whether With expected light than equal, if differing, according to border light than whether with the flash intensity of the difference adjustment flash lamp of expected light ratio simultaneously Current scene is shot again to obtain light filling photo, finally according to light filling photo to the dark portion of original photo or highlights into The practical light ratio of original photo is adjusted to expected light ratio by row part light filling, thus in no secondary light source and reflector, The adjustment to mobile terminal shooting photo light ratio is realized, user only need to press as usual shutter and take pictures, without any numerous Trivial operation can conveniently realize and take pictures and to the adjust automatically for shooting photo light ratio, make to shoot photo, especially portrait photograph Piece, better effect.
Detailed description of the invention
Fig. 1 to realize the present invention the mobile terminal of each embodiment hardware configuration signal;
Fig. 2 is the electrical structure block diagram of camera in Fig. 1;
Fig. 3 is the functional block diagram of mobile terminal filming apparatus first embodiment of the present invention;
Fig. 4 is the refinement the functional block diagram of supplementary lighting module in mobile terminal filming apparatus second embodiment of the present invention;
Fig. 5 is refinement functional module signal of the light than obtaining module in mobile terminal filming apparatus 3rd embodiment of the present invention Figure;
Fig. 6 is the flow diagram of mobile terminal image pickup method first embodiment of the present invention;
Fig. 7 be in mobile terminal image pickup method second embodiment of the present invention according to light filling photo to the dark portion of original photo or Highlights carries out local light filling, by the practical light of original photo than be adjusted to expected light than the step of stream thinning journey schematic diagram;
Fig. 8 is the dark portion and highlights determined in original photo in mobile terminal image pickup method 3rd embodiment of the present invention, and Obtain the practical light of the original photo than the step of stream thinning journey schematic diagram;
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The mobile terminal of each embodiment of the present invention is realized in description with reference to the drawings.In subsequent description, use For indicate element such as " module ", " component " or " unit " suffix only for being conducive to explanation of the invention, itself There is no specific meanings.Therefore, " module " can be used mixedly with " component ".
Mobile terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as moving Phone, smart phone, laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet computer), PMP The mobile terminal of (portable media player), navigation device etc. and such as number TV, desktop computer etc. are consolidated Determine terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that in addition to being used in particular for moving Except the element of purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Fig. 1 to realize the present invention the mobile terminal of each embodiment hardware configuration signal.
Mobile terminal 100 may include wireless communication unit 110, A/V (audio/video) input unit 120, user's input Unit 130, sensing unit 140, output unit 150, memory 160, interface unit 170, controller 180 and power supply unit 190 Etc..Fig. 1 shows the mobile terminal with various assemblies, it should be understood that being not required for implementing all groups shown Part.More or fewer components can alternatively be implemented.The element of mobile terminal will be discussed in more detail below.
Wireless communication unit 110 generally includes one or more components, allows mobile terminal 100 and wireless communication device Or the radio communication between network.For example, wireless communication unit may include broadcasting reception module 111, mobile communication module 112, at least one of wireless Internet module 113, short range communication module 114 and location information module 115.
Broadcasting reception module 111 receives broadcast singal and/or broadcast from external broadcast management server via broadcast channel Relevant information.Broadcast channel may include satellite channel and/or terrestrial channel.Broadcast management server, which can be, to be generated and sent The broadcast singal and/or broadcast related information generated before the server or reception of broadcast singal and/or broadcast related information And send it to the server of terminal.Broadcast singal may include TV broadcast singal, radio signals, data broadcasting Signal etc..Moreover, broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast phase Closing information can also provide via mobile communications network, and in this case, broadcast related information can be by mobile communication mould Block 112 receives.Broadcast singal can exist in a variety of manners, for example, it can be with the electronics of digital multimedia broadcasting (DMB) Program guide (EPG), digital video broadcast-handheld (DVB-H) electronic service guidebooks (ESG) etc. form and exist.Extensively Signal broadcast can be received by using various types of broadcasters by broadcasting receiving module 111.Particularly, broadcasting reception module 111 can be regarded by using such as multimedia broadcasting-ground (DMB-T), digital multimedia broadcasting-satellite (DMB-S), number Frequency Broadcasting-Handheld (DVB-H), forward link media (MediaFLO@) data broadcasting device, received terrestrial digital broadcasting integrated service (ISDB-T) etc. digital broadcast apparatus receives digital broadcasting.Broadcasting reception module 111, which may be constructed such that, to be adapted to provide for extensively Broadcast the various broadcasters and above-mentioned digital broadcast apparatus of signal.Via the received broadcast singal of broadcasting reception module 111 and/ Or broadcast related information can store in memory 160 (or other types of storage medium).
Mobile communication module 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal And at least one of server and/or receive from it radio signal.Such radio signal may include that voice is logical Talk about signal, video calling signal or according to text and/or Multimedia Message transmission and/or received various types of data.
The Wi-Fi (Wireless Internet Access) of the support mobile terminal of wireless Internet module 113.The module can be internally or externally It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved in the module may include WLAN (Wireless LAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..
Short range communication module 114 is the module for supporting short range communication.Some examples of short-range communication technology include indigo plant ToothTM, radio frequency identification (RFID), Infrared Data Association (IrDA), ultra wide band (UWB), purple honeybeeTMEtc..
Location information module 115 is the module for checking or obtaining the location information of mobile terminal.Location information module Typical case be GPS (global pick device).According to current technology, GPS module 115, which calculates, comes from three or more satellites Range information and correct time information and the Information application triangulation for calculating, thus according to longitude, latitude Highly accurately calculate three-dimensional current location information.Currently, it is defended for the method for calculating position and temporal information using three Star and the error that calculated position and temporal information are corrected by using an other satellite.In addition, GPS module 115 It can be by Continuous plus current location information in real time come calculating speed information.
A/V input unit 120 is for receiving audio or video signal.A/V input unit 120 may include 121 He of camera Microphone 122, camera 121 is to the static images obtained in video acquisition mode or image capture mode by image capture apparatus Or the image data of video is handled.Treated, and picture frame may be displayed on display unit 151.It is handled through camera 121 Picture frame afterwards can store in memory 160 (or other storage mediums) or be sent out via wireless communication unit 110 It send, two or more cameras 121 can be provided according to the construction of mobile terminal.Microphone 122 can be in telephone calling model, note Sound (audio data) is received via microphone in record mode, speech recognition mode etc. operational mode, and can will in this way Acoustic processing be audio data.Audio that treated (voice) data can be converted in the case where telephone calling model can The format output of mobile communication base station is sent to via mobile communication module 112.Various types of make an uproar can be implemented in microphone 122 Sound eliminates (or inhibition) algorithm to eliminate the noise or do that (or inhibition) generates during sending and receiving audio signal It disturbs.
The order that user input unit 130 can be inputted according to user generates key input data to control each of mobile terminal Kind operation.User input unit 130 allows user to input various types of information, and may include keyboard, metal dome, touch Plate (for example, the sensitive component of detection due to the variation of resistance, pressure, capacitor etc. caused by being contacted), idler wheel, rocking bar etc. Deng.Particularly, when touch tablet is superimposed upon in the form of layer on display unit 151, touch screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 100, (for example, mobile terminal 100 opens or closes shape State), the position of mobile terminal 100, user is for the presence or absence of contact (that is, touch input) of mobile terminal 100, mobile terminal 100 orientation, the acceleration of mobile terminal 100 or by fast movement and direction etc., and generate for controlling mobile terminal 100 The order of operation or signal.For example, sensing unit 140 can be felt when mobile terminal 100 is embodied as sliding-type mobile phone Surveying the sliding-type phone is to open or close.In addition, sensing unit 140 is able to detect whether power supply unit 190 provides electric power Or whether interface unit 170 couples with external device (ED).Sensing unit 140 may include that proximity sensor 1410 will be below This is described in conjunction with touch screen.
Interface unit 170 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Identification module can be storage and use each of mobile terminal 100 for verifying user It plants information and may include subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) Etc..In addition, the device (hereinafter referred to as " identification device ") with identification module can take the form of smart card, therefore, know Other device can be connect via port or other attachment devices with mobile terminal 100.Interface unit 170, which can be used for receiving, to be come from The input (for example, data information, electric power etc.) of external device (ED) and the input received is transferred in mobile terminal 100 One or more elements can be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 100 is connect with external base, interface unit 170 may be used as allowing will be electric by it Power, which is provided from pedestal to the path or may be used as of mobile terminal 100, allows the various command signals inputted from pedestal to pass through it It is transferred to the path of mobile terminal.The various command signals or electric power inputted from pedestal, which may be used as mobile terminal for identification, is The no signal being accurately fitted on pedestal.Output unit 150 is configured to provide with vision, audio and/or tactile manner defeated Signal (for example, audio signal, vision signal, alarm signal, vibration signal etc.) out.Output unit 150 may include display Unit 151, audio output module 152, alarm unit 153 etc..
Display unit 151 may be displayed on the information handled in mobile terminal 100.For example, when mobile terminal 100 is in When telephone calling model, display unit 151 can show and converse or other communicate (for example, text messaging, multimedia are literary Part downloading etc.) relevant user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling mould When formula or image capture mode, display unit 151 can show captured image and/or received image, video is shown or Image and the UI or GUI of correlation function etc..
Meanwhile when display unit 151 and touch tablet in the form of layer it is superposed on one another to form touch screen when, display unit 151 may be used as input unit and output device.Display unit 151 may include liquid crystal display (LCD), thin film transistor (TFT) In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least It is a kind of.Some in these displays may be constructed such that transparence to allow user to watch from outside, this is properly termed as transparent Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific Desired embodiment, mobile terminal 100 may include two or more display units (or other display devices), for example, moving Dynamic terminal may include outernal display unit (not shown) and inner display unit (not shown).Touch screen can be used for detecting touch Input pressure and touch input position and touch input area.
Audio output module 152 can mobile terminal be in call signal reception pattern, call mode, logging mode, It is when under the isotypes such as speech recognition mode, broadcast reception mode, wireless communication unit 110 is received or in memory 160 The audio data transducing audio signal of middle storage and to export be sound.Moreover, audio output module 152 can provide and movement The relevant audio output of specific function (for example, call signal receives sound, message sink sound etc.) that terminal 100 executes. Audio output module 152 may include sound pick-up, buzzer etc..
Alarm unit 153 can provide output notifying event to mobile terminal 100.Typical event can be with Including calling reception, message sink, key signals input, touch input etc..Other than audio or video output, alarm unit 153 can provide output in different ways with the generation of notification event.For example, alarm unit 153 can be in the form of vibration Output is provided, when receiving calling, message or some other entrance communications (incoming communication), alarm list Member 153 can provide tactile output (that is, vibration) to notify to user.By providing such tactile output, even if When the mobile phone of user is in the pocket of user, user also can recognize that the generation of various events.Alarm unit 153 The output of the generation of notification event can also be provided via display unit 151 or audio output module 152.
Memory 160 can store the software program etc. of the processing and control operation that are executed by controller 180, Huo Zheke Temporarily to store oneself data (for example, telephone directory, message, still image, video etc.) through exporting or will export.And And memory 160 can store about the vibrations of various modes and audio signal exported when touching and being applied to touch screen Data.
Memory 160 may include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, more Media card, card-type memory (for example, SD or DX memory etc.), random access storage device (RAM), static random-access are deposited Reservoir (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..Moreover, mobile terminal 100 can execute memory with by network connection The network storage device of 160 store function cooperates.
The overall operation of the usually control mobile terminal of controller 180.For example, controller 180 executes and voice communication, data Communication, video calling etc. relevant control and processing.In addition, controller 180 may include for reproducing (or playback) more matchmakers The multi-media module 181 of volume data, multi-media module 181 can construct in controller 180, or can be structured as and control Device 180 separates.Controller 180 can be with execution pattern identifying processing, by the handwriting input executed on the touchscreen or picture It draws input and is identified as character or image.
Power supply unit 190 receives external power or internal power under the control of controller 180 and provides operation each member Electric power appropriate needed for part and component.
Various embodiments described herein can be to use the calculating of such as computer software, hardware or any combination thereof Machine readable medium is implemented.Hardware is implemented, embodiment described herein can be by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can Programming gate array (FPGA), controller, microcontroller, microprocessor, is designed to execute function described herein processor At least one of electronic unit is implemented, and in some cases, such embodiment can be implemented in controller 180. For software implementation, the embodiment of such as process or function can with allow to execute the individual of at least one functions or operations Software module is implemented.Software code can by the software application (or program) write with any programming language appropriate Lai Implement, software code can store in memory 160 and be executed by controller 180.
So far, oneself is through describing mobile terminal according to its function.In the following, for the sake of brevity, will description such as folded form, Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc., which is used as, to be shown Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.
It is the electrical structure block diagram of camera in Fig. 1 referring to Fig. 2, Fig. 2.
Phtographic lens 1211 is made of the multiple optical lens for being used to form shot object image, is single-focus lens or varifocal mirror Head.Phtographic lens 1211 can move in the direction of the optical axis under the control of lens driver 1221, and lens driver 1221 According to the control signal from lens driving control circuit 1222, the focal position of phtographic lens 1211 is controlled, in zoom lens In the case of, it also can control focal length.Lens driving control circuit 1222 is according to the control command from microcomputer 1217 Carry out the drive control of lens driver 1221.
It is configured with and takes the photograph near the position of the shot object image formed on the optical axis of phtographic lens 1211, by phtographic lens 1211 Element 1212.Photographing element 1212 is for imaging shot object image and obtaining image data.On photographing element 1212 Two dimension and be arranged in a matrix the photodiode for constituting each pixel.Each photodiode generates photoelectricity corresponding with light income Switching current, the photoelectric conversion electric current carry out charge accumulation by the capacitor connecting with each photodiode.The preceding table of each pixel Face is configured with the RGB colour filter of bayer arrangement.
Photographing element 1212 is connect with imaging circuit 1213, which carries out charge in photographing element 1212 Accumulation control and picture signal read control, and it is laggard to reduce resetting noise to the picture signal (analog picture signal) of the reading Row waveform shaping, and then gain raising etc. is carried out to become signal level appropriate.Imaging circuit 1213 and A/D converter 1214 Connection, the A/D converter 1214 to analog picture signal carry out analog-to-digital conversion, to 1227 output digital image signal of bus (with It is referred to as image data down).
Bus 1227 is the transmitting path for being transmitted in the various data that the inside of camera reads or generates.In bus 1227 are connected to above-mentioned A/D converter 1214, are additionally connected to image processor 1215, JPEG processor 1216, microcomputer Calculation machine 1217, SDRAM (Synchronous Dynamic random access memory, Synchronous Dynamic Random Access Memory) 1218, memory interface (hereinafter referred to as memory I/F) 1219, LCD (Liquid Crystal Display, liquid crystal display Device) driver 1220.
Image processor 1215 carries out OB to the image data of the output based on photographing element 1212 and subtracts each other processing, white balance Adjustment, gamma conversion, colour difference signal processing, noise removal process, changes processing, edge processing etc. respectively at color matrix operation simultaneously Kind image procossing.Jpeg processor 1216 is when by Imagery Data Recording in recording medium 1225, according to JPEG compression mode pressure Contract the image data read from SDRAM1218.In addition, jpeg processor 1216 shows to carry out image reproducing and carries out JPEG The decompression of image data.When unziping it, the file being recorded in recording medium 1225 is read, in jpeg processor 1216 In implement decompression after, the image data of decompression is temporarily stored in SDRAM1218 and enterprising in LCD1226 Row display.In addition, in the present embodiment, as compression of images decompression mode using JPEG mode, however compressing solution Compress mode is without being limited thereto, it is of course possible to using MPEG, TIFF, other compressed and decompressed modes such as H.264.
Microcomputer 1217 plays the function of the control unit as camera entirety, is uniformly controlled the various processing of camera Sequence.Microcomputer 1217 is connected to operating unit 1223 and flash memory 1224.
Operating unit 1223 includes but is not limited to physical button or virtual key, and the entity or virtual key can be electricity Source button, camera button, edit key, dynamic image button, reproduction button, menu button, cross key, OK button, delete button, The operational controls such as the various input buttons such as large buttons and various enter keys, detect the mode of operation of these operational controls,.
It will test result to export to microcomputer 1217.In addition, the front surface in the LCD1226 as display is equipped with Touch panel detects the touch location of user, which is exported to microcomputer 1217.Microcomputer 1217 According to the testing result of the operating position from operating unit 1223, various processing sequences corresponding with the operation of user are executed.
Flash memory 1224 stores the program for executing the various processing sequences of microcomputer 1217.Microcomputer 1217 The control of camera entirety is carried out according to the program.In addition, flash memory 1224 stores the various adjusted values of camera, microcomputer 1217 Adjusted value is read, the control of camera is carried out according to the adjusted value.
SDRAM1218 be for image data etc. temporarily stored can electricity rewrite volatile memory.It should SDRAM1218 temporarily stores the image data exported from A/D converter 1214 and in image processor 1215, jpeg processor 1216 it is equal in the image data that carried out that treated.
Memory interface 1219 is connect with recording medium 1225, is carried out image data and the text being attached in image data First-class control data write-in recording medium 1225 and read from recording medium 1225 of part.Recording medium 1225 is, for example, can The recording mediums such as memory card of disassembled and assembled freely on camera main-body, however it is without being limited thereto, it is also possible to be built in camera main-body In hard disk etc..
LCD driver 1210 is connect with LCD1226, will treated that image data is stored in by image processor 1215 SDRAM1218 when needing to show, reads the image data of SDRAM1218 storage and shows on LCD1226, alternatively, JPEG The compressed image data of processor 1216 is stored in SDRAM1218, and when needing to show, jpeg processor 1216 is read The compressed image data of SDRAM1218, then unzip it, the image data after decompression is carried out by LCD1226 Display.
LCD1226 configuration performs image display at the back side of camera main-body.The LCD1226LCD), however it is without being limited thereto, The various display panels (LCD1226) such as organic EL can be used, however it is without being limited thereto, it can also be using various displays such as organic EL Panel.
Electrical structure schematic diagram based on above-mentioned mobile terminal hardware configuration and camera proposes mobile terminal figure of the present invention Piece uploads each embodiment of device, and mobile terminal picture uploads a part that device is mobile terminal.
Referring to Fig. 3, the present invention provides a kind of mobile terminal filming apparatus, in mobile terminal filming apparatus first embodiment In, which includes:
First shooting module 10, for when detecting photographing instruction, control mobile terminal to shoot current scene, acquisition original Beginning photo;
Before user's operation mobile terminal is taken pictures, first inputting expected light ratio to mobile terminal, (light ratio is a figure As in dark portion brightness and highlights brightness ratio), the expection light than be user expection photo effect in light ratio value;Then user The shutter of mobile terminal is pressed, mobile terminal generates corresponding photographing instruction, when detecting photographing instruction, the first shooting module 10 control mobile terminals shoot its view-finder current scene collected, obtain under the environment light of current scene without mending The original photo repaid.
Light for determining dark portion and highlights in original photo, and obtains the reality of the original photo than obtaining module 20 Light ratio;
Light is judged than obtaining module 20 by peak edge, identifies dark portion in original photo, highlights and bright-dark cut; Detailed process are as follows: light generates the spare light and shade point of preset number than obtaining module 20 according to the light and shade distribution situation of original photo Boundary line, generating mode can first obtain the brightness of all pixels point in original photo, and it is big to select vicinity points brightness change value In the region of given threshold, and the region that these are selected connects a line to form the spare bright-dark cut of preset number;Then Light obtains preset number dark portion and highlights combination according to different spare bright-dark cuts than obtaining module 20;It finds out again each Dark portion all pixels point average brightness (i.e. dark portion brightness) and the point brightness of highlights all pixels are average in dark portion and highlights combination It is worth (i.e. highlights brightness), light further finds out each dark portion and highlights according to the dark portion brightness and highlights brightness than obtaining module 20 Combined light ratio, by light than maximum dark portion and highlights combination as the dark portion of original photo and the splitting scheme of highlights, i.e., by light Bright-dark cut of the corresponding spare bright-dark cut as original photo is combined than maximum dark portion and highlights.
In order to better understand in original photo dark portion and highlights determination process, aided in illustrating below with specific example: For example, being greater than the area distribution of given threshold according to brightness change value between pixel in original photo, according to the area distribution shape It is that highlights, brightness are smaller according to the biggish side region of bright-dark cut brightness at 3 spare bright-dark cut A1, A2 and A3 A side region be dark portion rule, obtain bright-dark cut A1 correspond to dark portion and highlights combination a1, bright-dark cut A2 correspondence Dark portion and highlights combination a2 and bright-dark cut A3 correspond to dark portion and a3 (is hereinafter referred to as combined) in highlights combination, obtains combination a1 Light ratio L1, combine a2 light ratio L2 and combine a3 light ratio L3, relatively light ratio L1, L2 and L3 (such as light ratio L1 be 1:2, light ratio L2 is 1:2.2, and light ratio L3 is 1:1.9), light ratio L2 maximum is obtained, then using bright-dark cut A2 as original photo dark portion and highlights Splitting scheme, will combination a2 as the dark portion of original photo and highlights, using light ratio L2 as the practical light ratio of original photo.
In addition, in the present embodiment, the brightness of pixel can pass through pixel RGB (RGB) the three primary colors gain The sum of value indicates.
Light than comparison module 30, for compare practical light than with the expection light ratio that prestores, obtain the practical light ratio and expection The difference of light ratio;
For example, it is contemplated that light ratio is 1:1, practical light ratio is 1:4, since light ratio is the highlights brightness of dark portion brightness ratio, so will 3 ratio units of dark portion luminance raising of the practical light than in could be equal with expected light ratio 1:1, i.e., light is obtained than comparison module 30 Practical light is than being 3 ratio units with the difference of expected light ratio out;Light ratio as expected is 1:8, and practical light ratio is 1:4, need to be by reality Border light could be equal with expected light ratio 1:8 than 4 ratio units of middle light luminance raising, i.e., light obtains reality than comparison module 30 Light is than being 4 ratio units with the difference of expected light ratio.
Light intensity adjusting module 40, the flash intensity of the flash lamp for adjusting mobile terminal according to difference, and control movement Terminal shoots current scene with flash intensity adjusted again, obtains light filling photo;
The adjustable flash lamp of flash intensity is provided on mobile terminal, practical light is eventually than the difference and movement with expected light ratio The corresponding relationship of the flash intensity of flash lamp is held to be pre-stored in mobile terminal.For example, it is contemplated that light ratio is 1:8, practical light ratio is 1: 4, the dark portion brightness of original photo is 50, and practical light is 4 ratio units than the difference with expected light ratio, that is, needs to promote 200 Brightness, light intensity adjusting module 40 according to practical light than with the flash lamp of the difference of expected light ratio adjustment mobile terminal to corresponding sudden strain of a muscle Luminous intensity, and control mobile terminal and current scene is shot again with flash intensity adjusted, and obtain light filling photo.
Since the processing capacity of current mobile terminal is very powerful, shutter shooting current scene is pressed to obtain from user Original photo is taken, current scene is shot again to obtain institute between light filling photo according to flash intensity adjusted to mobile terminal The time of consuming is very short, and mobile terminal is not shot twice from the user's point of view, does not have in experience with normal single shot Difference.
Supplementary lighting module 50 will be former for carrying out local light filling according to dark portion or highlights of the light filling photo to original photo The practical light ratio of beginning photo is adjusted to expected light ratio.
According to light and shade dividing line generating mode identical with original photo, the dark portion and highlights of light filling photo are determined, and obtain Light filling photo dark portion brightness and highlights brightness are taken, supplementary lighting module 50 is according to the dark portion brightness and highlights brightness of light filling photo to original The dark portion or highlights of photo carry out local light filling, i.e., when the dark portion of original photo needs light filling, then supplementary lighting module 50 is according to light filling The dark portion brightness of the dark portion brightness adjustment original photo of photo;When the highlights of original photo needs light filling, then supplementary lighting module 50 According to the highlights brightness of the highlights brightness adjustment original photo of light filling photo;To which the practical light ratio of original photo is adjusted to expected Light ratio, and then light is stored in mobile terminal than being adjusted to the original photo of expected light ratio as output photo.
In the present embodiment, by judging automatically the reality of original photo when user presses shutter and shoots current scene Light than whether with expected light than equal, if differing, according to border light than whether the sudden strain of a muscle with the difference adjustment flash lamp of expected light ratio Luminous intensity simultaneously shoots current scene again to obtain light filling photo, finally according to light filling photo to the dark portion of original photo Or highlights carries out local light filling, and the practical light ratio of original photo is adjusted to expected light ratio, thus in no secondary light source and When reflector, the adjustment to mobile terminal shooting photo light ratio is realized, user only need to press as usual shutter and take pictures, nothing Any troublesome operation is needed, can be conveniently realized and be taken pictures and to the adjust automatically for shooting photo light ratio, make to shoot photo, especially Portrait photo, better effect.
Further, on the basis of mobile terminal filming apparatus first embodiment of the present invention, mobile terminal shooting is proposed Device second embodiment, referring to Fig. 4, in a second embodiment, supplementary lighting module 50 includes:
First judging unit 51, for judging expected light than whether being less than practical light ratio;
First acquisition unit 52, for obtaining the brightness of dark portion in light filling photo when expected light ratio is less than practical light ratio;
The first adjustment unit 53, for being the brightness of dark portion in light filling photo by the brightness adjustment of dark portion in original photo, The practical light ratio of original photo is adjusted to expected light ratio.
After obtaining light filling photo, the first judging unit 51 judges expected light than whether being less than practical light ratio, if when pre- When phase light ratio is less than practical light ratio, such as expected light ratio is 1:1, and practical light ratio is 1:4, need in original photo dark portion it is bright Degree is promoted and keeps the brightness of highlights constant, so first acquisition unit 52 extracts the brightness of dark portion in light filling photo, i.e., The RGB yield value of dark portion all pixels point in light filling photo is obtained, then the first adjustment unit 53 is by dark portion in original photo Brightness adjustment is the brightness of dark portion in light filling photo, i.e., by the corresponding tune of the RGB yield value of dark portion all pixels point in original photo The practical light ratio of original photo is adjusted to expected light ratio by the whole RGB yield value for dark portion all pixels point in light filling photo, Reach the expection light ratio of user.
In addition, on the basis of mobile terminal filming apparatus second embodiment of the present invention, supplementary lighting module 50 further include:
Second acquisition unit 54, for obtaining light filling photo middle light when expected light ratio is more than or equal to practical light ratio Brightness;
Second judgment unit 55 leads to the brightness of overexposure for judging whether the brightness of light filling photo middle light is greater than Extreme value;
Second adjustment unit 56 will be in original photo if the brightness for light filling photo middle light is greater than threshold brightness The brightness adjustment of highlights is threshold brightness, and corresponds to the brightness for adjusting dark portion in the original photo, by the reality of original photo Light ratio is adjusted to expected light ratio;
Third adjustment unit 57, if the brightness for light filling photo middle light is less than or equal to threshold brightness, by original photograph The brightness adjustment of piece middle light is the brightness of light filling photo middle light, and the practical light ratio of original photo is adjusted to expected light Than.
When expected light ratio is greater than practical light ratio, such as expected light ratio is 1:8, and practical light ratio is 1:4, is needed to original photograph The brightness of piece middle light is promoted and keeps the brightness of dark portion constant, so bright in the acquisition light filling photo of second acquisition unit 54 The brightness in portion obtains the RGB yield value of light filling photo middle light all pixels point.
But promoted the brightness of highlights after needing to avoid to be promoted to the brightness of original photo highlights there may be mistakes Degree exposure, so needing second judgment unit 55 to judge whether the brightness of light filling photo middle light is greater than leads to the bright of overexposure Extreme value is spent, if the brightness of light filling photo middle light is greater than threshold brightness, shows that the brightness adjustment of original photo middle light is light filling The brightness of photo middle light will appear overexposure, then the brightness adjustment of original photo middle light is bright by second adjustment unit 56 Extreme value, and the corresponding brightness for adjusting dark portion in the original photo are spent, the practical light ratio of original photo is adjusted to expected light ratio. Such as expected light ratio is 1:6, practical light ratio is 1:2, and the brightness of original photo highlights is 200, and the brightness of original photo dark portion is 100, the brightness of light filling photo highlights is 600, threshold brightness 300, since the brightness of light filling photo highlights is greater than threshold brightness, It is 50 by the brightness adjustment of original photo highlights, so that reality adjusted so being 300 by the brightness adjustment of original photo highlights Border light ratio is 1:6.
If the brightness of light filling photo middle light is less than or equal to threshold brightness, third adjustment unit 57 will be bright in original photo The brightness adjustment in portion is the brightness of light filling photo middle light, and the practical light ratio of original photo is adjusted to expected light ratio.For example, It is expected that light ratio is 1:3, practical light ratio is 1:2, and the brightness of original photo highlights is 200, and the brightness of original photo dark portion is 100, The brightness of light filling photo highlights is 300, threshold brightness 350, since the brightness of light filling photo highlights is less than threshold brightness, so It is 300 by the brightness adjustment of original photo highlights, keeps the brightness of original photo dark portion constant.
In the present embodiment, a kind of dark portion or highlights progress local repair according to the adjustment of light filling photo to original photo is provided Light by by the practical light of original photo than being adjusted to expected light ratio in a manner of, point three kinds of situations are handled differently, and are guaranteeing original photograph Piece under the premise of overexposure, does not realize the adjustment to original photo light ratio.
Further, on the basis of mobile terminal filming apparatus first embodiment of the present invention, mobile terminal shooting is proposed Device 3rd embodiment, referring to Fig. 5, in the third embodiment, light includes: than obtaining module 20
Determination unit 21, for determining dark portion and highlights in original photo;
Determination unit 21 is also used to:
According to the light and shade distribution situation of original photo, the spare bright-dark cut of preset number is generated;
According to spare bright-dark cut, the dark portion and highlights combination of preset number are obtained;
Light is selected from dark portion and the highlights combination for obtaining preset number than maximum dark portion and highlights combination as the original The dark portion and highlights of beginning photo.
Light is than acquiring unit 22, for obtaining the brightness of the brightness of dark portion and highlights in original photo, and according to the dark portion Brightness and highlights brightness, obtain the practical light ratio of the original photo.
Determination unit 21 is judged by peak edge, identifies dark portion in original photo, highlights and bright-dark cut;Specifically Process are as follows: according to the light and shade distribution situation of original photo, generate the spare bright-dark cut of preset number, generating mode can be first The region that vicinity points brightness change value is greater than given threshold is selected in the brightness for obtaining all pixels point in original photo, and The region that these are selected connects a line to form the spare bright-dark cut of preset number;Then according to different spare light and shade point Boundary line obtains preset number dark portion and highlights combination;Light finds out dark portion in each dark portion and highlights combination than acquiring unit 22 again All pixels point average brightness (i.e. dark portion brightness) and highlights all pixels point average brightness (i.e. highlights brightness), go forward side by side one Step finds out the light ratio of each dark portion and highlights combination according to the dark portion brightness and highlights brightness, by light than maximum dark portion and highlights group Cooperation is the dark portion of original photo and the splitting scheme of highlights, i.e., light combines corresponding spare light and shade than maximum dark portion and highlights Bright-dark cut of the line of demarcation as original photo.
In order to better understand in original photo dark portion and highlights determination process, aided in illustrating below with specific example: For example, being greater than the area distribution of given threshold according to brightness change value between pixel in original photo, according to the area distribution shape It is that highlights, brightness are smaller according to the biggish side region of bright-dark cut brightness at 3 spare bright-dark cut A1, A2 and A3 A side region be dark portion rule, obtain bright-dark cut A1 correspond to dark portion and highlights combination a1, bright-dark cut A2 correspondence Dark portion and highlights combination a2 and bright-dark cut A3 correspond to dark portion and a3 (is hereinafter referred to as combined) in highlights combination, obtains combination a1 Light ratio L1, combine a2 light ratio L2 and combine a3 light ratio L3, relatively light ratio L1, L2 and L3 (such as light ratio L1 be 1:2, light ratio L2 is 1:2.2, and light ratio L3 is 1:1.9), light ratio L2 maximum is obtained, then using bright-dark cut A2 as original photo dark portion and highlights Splitting scheme, will combination a2 as the dark portion of original photo and highlights, using light ratio L2 as the practical light ratio of original photo.
In the present embodiment, the dark portion and highlights, the practical light ratio for obtaining original photo of a kind of determining original photo are provided Embodiment, so that mobile terminal can be with the practical light ratio of quick obtaining original photo, quickly to determine one under mobile terminal The flash intensity of flash lamp when secondary shooting, more quickly obtain light filling photo, thus make according to light filling photo to original photo into The local light filling of row dark portion or highlights is more efficiently.
The present invention also provides a kind of mobile terminal image pickup methods, in mobile terminal image pickup method first embodiment, reference Fig. 6, this method comprises:
Step S10, when detecting photographing instruction, control mobile terminal shoots current scene, obtains original photo;
Before user's operation mobile terminal is taken pictures, first inputting expected light ratio to mobile terminal, (light ratio is a figure As in dark portion brightness and highlights brightness ratio), the expection light than be user expection photo effect in light ratio value;Then user The shutter of mobile terminal is pressed, mobile terminal generates corresponding photographing instruction, when detecting photographing instruction, controls mobile terminal Its view-finder current scene collected is shot, original photo not compensated under the environment light of current scene is obtained.
Step S20 determines dark portion and highlights in original photo, and obtains the practical light ratio of the original photo;
Judged by peak edge, identifies dark portion in original photo, highlights and bright-dark cut;Detailed process are as follows: root According to the light and shade distribution situation of original photo, the spare bright-dark cut of preset number is generated, generating mode can first obtain original The brightness of all pixels point in photo selects the region that vicinity points brightness change value is greater than given threshold, and these is selected Region out connects a line to form the spare bright-dark cut of preset number;Then it is obtained according to different spare bright-dark cuts Preset number dark portion and highlights combination;Dark portion all pixels point average brightness in each dark portion and highlights combination is found out again (i.e. dark portion brightness) and highlights all pixels point average brightness (i.e. highlights brightness), and further according to the dark portion brightness and bright Portion's brightness finds out the light ratio of each dark portion and highlights combination, the dark portion by light than maximum dark portion and highlights combination as original photo With the splitting scheme of highlights, i.e., corresponding spare bright-dark cut light is combined as original photo than maximum dark portion and highlights Bright-dark cut.
In order to better understand in original photo dark portion and highlights determination process, aided in illustrating below with specific example: For example, being greater than the area distribution of given threshold according to brightness change value between pixel in original photo, according to the area distribution shape It is that highlights, brightness are smaller according to the biggish side region of bright-dark cut brightness at 3 spare bright-dark cut A1, A2 and A3 A side region be dark portion rule, obtain bright-dark cut A1 correspond to dark portion and highlights combination a1, bright-dark cut A2 correspondence Dark portion and highlights combination a2 and bright-dark cut A3 correspond to dark portion and a3 (is hereinafter referred to as combined) in highlights combination, obtains combination a1 Light ratio L1, combine a2 light ratio L2 and combine a3 light ratio L3, relatively light ratio L1, L2 and L3 (such as light ratio L1 be 1:2, light ratio L2 is 1:2.2, and light ratio L3 is 1:1.9), light ratio L2 maximum is obtained, then using bright-dark cut A2 as original photo dark portion and highlights Splitting scheme, will combination a2 as the dark portion of original photo and highlights, using light ratio L2 as the practical light ratio of original photo.
In addition, in the present embodiment, the brightness of pixel can pass through pixel RGB (RGB) the three primary colors gain The sum of value indicates.
Step S30, practical light than with the expection light ratio that prestores, obtain the practical light than the difference with expected light ratio;
For example, it is contemplated that light ratio is 1:1, practical light ratio is 1:4, since light ratio is the highlights brightness of dark portion brightness ratio, so will 3 ratio units of dark portion luminance raising of the practical light than in could be equal with expected light ratio 1:1, i.e., practical light ratio and expected light The difference of ratio is 3 ratio units;Light ratio as expected is 1:8, and practical light ratio is 1:4, need to mention practical light than middle light brightness Rising 4 ratio units could be equal with expected light ratio 1:8, i.e., practical light is than being 4 ratio units with the difference of expected light ratio.
Step S40 adjusts the flash intensity of the flash lamp of mobile terminal according to difference, and after controlling mobile terminal to adjust Flash intensity shoot current scene again, obtain light filling photo;
The adjustable flash lamp of flash intensity is provided on mobile terminal, practical light is eventually than the difference and movement with expected light ratio The corresponding relationship of the flash intensity of flash lamp is held to be pre-stored in mobile terminal.For example, it is contemplated that light ratio is 1:8, practical light ratio is 1: 4, the dark portion brightness of original photo is 50, and practical light is 4 ratio units than the difference with expected light ratio, that is, needs to promote 200 Brightness, according to practical light than with the flash lamp of the difference of expected light ratio adjustment mobile terminal to corresponding flash intensity, and control Mobile terminal shoots current scene with flash intensity adjusted again, and obtains light filling photo.
Since the processing capacity of current mobile terminal is very powerful, shutter shooting current scene is pressed to obtain from user Original photo is taken, current scene is shot again to obtain institute between light filling photo according to flash intensity adjusted to mobile terminal The time of consuming is very short, and mobile terminal is not shot twice from the user's point of view, does not have in experience with normal single shot Difference.
Step S50 carries out local light filling according to dark portion or highlights of the light filling photo to original photo, by original photo Practical light ratio is adjusted to expected light ratio.
According to light and shade dividing line generating mode identical with original photo, the dark portion and highlights of light filling photo are determined, and obtain Light filling photo dark portion brightness and highlights brightness are taken, according to the dark portion brightness of light filling photo and highlights brightness to the dark portion of original photo Or highlights carries out local light filling, i.e., when the dark portion of original photo needs light filling, then according to the dark portion brightness adjustment original of light filling photo The dark portion brightness of beginning photo;When the highlights of original photo needs light filling, then according to the original photograph of highlights brightness adjustment of light filling photo The highlights brightness of piece;To which the practical light ratio of original photo is adjusted to expected light ratio, and then light is than being adjusted to expected light ratio Original photo is stored in mobile terminal as output photo.
In the present embodiment, by judging automatically the reality of original photo when user presses shutter and shoots current scene Light than whether with expected light than equal, if differing, according to border light than whether the sudden strain of a muscle with the difference adjustment flash lamp of expected light ratio Luminous intensity simultaneously shoots current scene again to obtain light filling photo, finally according to light filling photo to the dark portion of original photo Or highlights carries out local light filling, and the practical light ratio of original photo is adjusted to expected light ratio, thus in no secondary light source and When reflector, the adjustment to mobile terminal shooting photo light ratio is realized, user only need to press as usual shutter and take pictures, nothing Any troublesome operation is needed, can be conveniently realized and be taken pictures and to the adjust automatically for shooting photo light ratio, make to shoot photo, especially Portrait photo, better effect.
Further, on the basis of mobile terminal image pickup method first embodiment of the present invention, mobile terminal shooting is proposed Method second embodiment, referring to Fig. 7, in a second embodiment, step S50 includes:
Step S51 judges expected light than whether being less than practical light ratio;
Step S52 obtains the brightness of dark portion in light filling photo when expected light ratio is less than practical light ratio;
The brightness adjustment of dark portion in original photo is the brightness of dark portion in light filling photo, by original photo by step S53 Practical light ratio be adjusted to expected light ratio.
After obtaining light filling photo, judge whether expected light ratio is less than practical light ratio, if when expected light ratio is less than reality When light ratio, such as expected light ratio is 1:1, and practical light ratio is 1:4, and the brightness to dark portion in original photo is needed to be promoted and protected The brightness for holding highlights is constant, so extracting the brightness of dark portion in light filling photo, that is, obtains dark portion all pixels point in light filling photo RGB yield value, then by the brightness adjustment of dark portion in original photo be light filling photo in dark portion brightness, i.e., by original photo The corresponding RGB yield value for being adjusted to dark portion all pixels point in light filling photo of the RGB yield value of middle dark portion all pixels point, will The practical light ratio of original photo is adjusted to expected light ratio, reaches the expection light ratio of user.
In addition, on the basis of mobile terminal image pickup method second embodiment of the present invention, after step S41 further include:
Step S54 obtains the brightness of light filling photo middle light when expected light ratio is more than or equal to practical light ratio;
Step S55, judges whether the brightness of light filling photo middle light is greater than the threshold brightness for leading to overexposure;
Step S56, if the brightness of light filling photo middle light is greater than threshold brightness, by the brightness tune of original photo middle light Whole is threshold brightness, and corresponds to the brightness for adjusting dark portion in the original photo, and the practical light ratio of original photo is adjusted to pre- Phase light ratio;
Step S57, if the brightness of light filling photo middle light is less than or equal to threshold brightness, by the bright of original photo middle light Degree is adjusted to the brightness of light filling photo middle light, and the practical light ratio of original photo is adjusted to expected light ratio.
When expected light ratio is greater than practical light ratio, such as expected light ratio is 1:8, and practical light ratio is 1:4, is needed to original photograph The brightness of piece middle light is promoted and keeps the brightness of dark portion constant, so obtaining the brightness of light filling photo middle light, that is, is obtained Take the RGB yield value of light filling photo middle light all pixels point.
But promoted the brightness of highlights after needing to avoid to be promoted to the brightness of original photo highlights there may be mistakes Degree exposure, so needing to judge whether the brightness of light filling photo middle light is greater than the threshold brightness for leading to overexposure, if light filling The brightness of photo middle light is greater than threshold brightness, shows that the brightness adjustment of original photo middle light is the bright of light filling photo middle light Degree will appear overexposure, then the brightness adjustment of original photo middle light is threshold brightness, and in corresponding adjustment original photo The practical light ratio of original photo is adjusted to expected light ratio by the brightness of dark portion.Such as expected light ratio is 1:6, practical light ratio is 1:2, the brightness of original photo highlights are 200, and the brightness of original photo dark portion is 100, and the brightness of light filling photo highlights is 600, Threshold brightness is 300, since the brightness of light filling photo highlights is greater than threshold brightness, so by the brightness adjustment of original photo highlights It is 300, is 50 by the brightness adjustment of original photo highlights, so that practical light ratio adjusted is 1:6.
If the brightness of light filling photo middle light is less than or equal to threshold brightness, the brightness adjustment by original photo middle light is The practical light ratio of original photo is adjusted to expected light ratio by the brightness of light filling photo middle light.For example, it is contemplated that light ratio is 1:3, Practical light ratio is 1:2, and the brightness of original photo highlights is 200, and the brightness of original photo dark portion is 100, light filling photo highlights Brightness is 300, threshold brightness 350, since the brightness of light filling photo highlights is less than threshold brightness, so by original photo highlights Brightness adjustment be 300, keep original photo dark portion brightness it is constant.
In the present embodiment, a kind of dark portion or highlights progress local repair according to the adjustment of light filling photo to original photo is provided Light by by the practical light of original photo than being adjusted to expected light ratio in a manner of, point three kinds of situations are handled differently, and are guaranteeing original photograph Piece under the premise of overexposure, does not realize the adjustment to original photo light ratio.
Further, on the basis of mobile terminal image pickup method first embodiment of the present invention, mobile terminal shooting is proposed Method 3rd embodiment, referring to Fig. 8, in the third embodiment, step S20 includes:
Step S21 determines dark portion and highlights in original photo;
Optionally, step S21 includes:
Step S211 generates the spare bright-dark cut of preset number according to the light and shade distribution situation of original photo;
Step S212 obtains the dark portion and highlights combination of preset number according to spare bright-dark cut;
Step S213 selects light from dark portion and the highlights combination for obtaining preset number and combines than maximum dark portion and highlights Dark portion and highlights as the original photo.
Step S22 obtains the brightness of dark portion and the brightness of highlights in original photo, and according to the brightness of the dark portion and highlights Brightness, obtain the practical light ratio of the original photo.
Judged by peak edge, identifies dark portion in original photo, highlights and bright-dark cut;Detailed process are as follows: root According to the light and shade distribution situation of original photo, the spare bright-dark cut of preset number is generated, generating mode can first obtain original The brightness of all pixels point in photo selects the region that vicinity points brightness change value is greater than given threshold, and these is selected Region out connects a line to form the spare bright-dark cut of preset number;Then it is obtained according to different spare bright-dark cuts Preset number dark portion and highlights combination;Dark portion all pixels point average brightness in each dark portion and highlights combination is found out again (i.e. dark portion brightness) and highlights all pixels point average brightness (i.e. highlights brightness), and further according to the dark portion brightness and bright Portion's brightness finds out the light ratio of each dark portion and highlights combination, the dark portion by light than maximum dark portion and highlights combination as original photo With the splitting scheme of highlights, i.e., corresponding spare bright-dark cut light is combined as original photo than maximum dark portion and highlights Bright-dark cut.
In order to better understand in original photo dark portion and highlights determination process, aided in illustrating below with specific example: For example, being greater than the area distribution of given threshold according to brightness change value between pixel in original photo, according to the area distribution shape It is that highlights, brightness are smaller according to the biggish side region of bright-dark cut brightness at 3 spare bright-dark cut A1, A2 and A3 A side region be dark portion rule, obtain bright-dark cut A1 correspond to dark portion and highlights combination a1, bright-dark cut A2 correspondence Dark portion and highlights combination a2 and bright-dark cut A3 correspond to dark portion and a3 (is hereinafter referred to as combined) in highlights combination, obtains combination a1 Light ratio L1, combine a2 light ratio L2 and combine a3 light ratio L3, relatively light ratio L1, L2 and L3 (such as light ratio L1 be 1:2, light ratio L2 is 1:2.2, and light ratio L3 is 1:1.9), light ratio L2 maximum is obtained, then using bright-dark cut A2 as original photo dark portion and highlights Splitting scheme, will combination a2 as the dark portion of original photo and highlights, using light ratio L2 as the practical light ratio of original photo.
In the present embodiment, the dark portion and highlights, the practical light ratio for obtaining original photo of a kind of determining original photo are provided Embodiment, so that mobile terminal can be with the practical light ratio of quick obtaining original photo, quickly to determine one under mobile terminal The flash intensity of flash lamp when secondary shooting, more quickly obtain light filling photo, thus make according to light filling photo to original photo into The local light filling of row dark portion or highlights is more efficiently.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of mobile terminal filming apparatus, which is characterized in that the mobile terminal filming apparatus includes:
First shooting module, for when detecting photographing instruction, control mobile terminal shooting current scene to obtain original photograph Piece;
Light generates the spare bright-dark cut of preset number for the light and shade distribution situation according to original photo than obtaining module, Dark portion and highlights in the original photo are determined according to spare bright-dark cut, and obtain the practical light ratio of the original photo;
Light than comparison module, for the practical light than with the expection light ratio that prestores, obtain the practical light ratio and expected light The difference of ratio;
Light intensity adjusting module, the flash intensity of the flash lamp for adjusting mobile terminal according to the difference, and control mobile whole End shoots current scene with flash intensity adjusted again, obtains light filling photo;
Supplementary lighting module will be described for carrying out local light filling according to dark portion or highlights of the light filling photo to original photo The practical light ratio of original photo is adjusted to expected light ratio.
2. mobile terminal filming apparatus as described in claim 1, which is characterized in that the supplementary lighting module includes:
First judging unit, for judging the expected light than whether being less than practical light ratio;
First acquisition unit, for obtaining the bright of dark portion in the light filling photo when the expected light ratio is less than practical light ratio Degree;
The first adjustment unit, for being the bright of dark portion in the light filling photo by the brightness adjustment of dark portion in the original photo The practical light ratio of the original photo is adjusted to expected light ratio by degree.
3. mobile terminal filming apparatus as claimed in claim 2, which is characterized in that the supplementary lighting module further include:
Second acquisition unit, for obtaining the light filling photo middle light when the expected light ratio is more than or equal to practical light ratio Brightness;
Second judgment unit leads to the brightness pole of overexposure for judging whether the brightness of the light filling photo middle light is greater than Value;
Second adjustment unit, if the brightness for the light filling photo middle light is greater than threshold brightness, by the original photo The brightness adjustment of middle light is the threshold brightness, and corresponds to the brightness for adjusting dark portion in the original photo, will be described original The practical light ratio of photo is adjusted to expected light ratio;
Third adjustment unit will be described original if the brightness for the light filling photo middle light is less than or equal to threshold brightness The brightness adjustment of photo middle light is the brightness of the light filling photo middle light, by the practical light of the original photo than adjustment For expected light ratio.
4. the mobile terminal filming apparatus as described in claims 1 to 3 any one, which is characterized in that the light is than obtaining mould Block includes:
Determination unit, for determining dark portion and highlights in the original photo;
Light is than acquiring unit, for obtaining the brightness of the brightness of dark portion and highlights in the original photo, and according to the dark portion The brightness of brightness and highlights obtains the practical light ratio of the original photo.
5. mobile terminal filming apparatus as claimed in claim 4, which is characterized in that
The determination unit is also used to:
According to the light and shade distribution situation of the original photo, the spare bright-dark cut of preset number is generated;
According to the spare bright-dark cut, the dark portion and highlights combination of preset number are obtained;
Light is selected from the dark portion for obtaining preset number and highlights combination than maximum dark portion and highlights combination as the original The dark portion and highlights of beginning photo.
6. a kind of mobile terminal image pickup method, which is characterized in that the mobile terminal image pickup method includes:
When detecting photographing instruction, control mobile terminal shoots current scene, obtains original photo;
According to the light and shade distribution situation of original photo, the spare bright-dark cut of preset number is generated, is demarcated according to spare light and shade Line determines dark portion and highlights in the original photo, and obtains the practical light ratio of the original photo;
Compare the practical light than with the expection light ratio that prestores, obtain the practical light than the difference with expected light ratio;
The flash intensity of the flash lamp of mobile terminal is adjusted according to the difference, and it is strong with flash of light adjusted to control mobile terminal Degree shoots current scene again, obtains light filling photo;
Local light filling is carried out according to dark portion or highlights of the light filling photo to original photo, by the reality of the original photo Light ratio is adjusted to expected light ratio.
7. mobile terminal image pickup method as claimed in claim 6, which is characterized in that it is described according to the light filling photo to original The step of dark portion or highlights of photo carry out local light filling, and the practical light ratio of the original photo is adjusted to expected light ratio packet It includes:
Judge the expected light than whether being less than practical light ratio;
When the expected light ratio is less than practical light ratio, the brightness of dark portion in the light filling photo is obtained;
It is the brightness of dark portion in the light filling photo by the brightness adjustment of dark portion in the original photo, by the original photo Practical light ratio be adjusted to expected light ratio.
8. mobile terminal image pickup method as claimed in claim 7, which is characterized in that described to judge whether the expected light ratio is small After in the practical light ratio the step of further include:
When the expected light ratio is more than or equal to practical light ratio, the brightness of the light filling photo middle light is obtained;
Judge whether the brightness of the light filling photo middle light is greater than the threshold brightness for leading to overexposure;
If the brightness of the light filling photo middle light is greater than threshold brightness, the brightness adjustment by the original photo middle light is The threshold brightness, and the corresponding brightness for adjusting dark portion in the original photo, by the practical light of the original photo than adjustment For expected light ratio;
If the brightness of the light filling photo middle light is less than or equal to threshold brightness, by the brightness tune of the original photo middle light The practical light ratio of the original photo is adjusted to expected light ratio by the whole brightness for the light filling photo middle light.
9. the mobile terminal image pickup method as described in claim 6 to 8 any one, which is characterized in that the determination original Dark portion and highlights in beginning photo, and the step of obtaining the practical light ratio of the original photo includes:
Determine dark portion and highlights in the original photo;
Obtain the brightness of the brightness of dark portion and highlights in the original photo, and according to the brightness of the brightness of the dark portion and highlights, Obtain the practical light ratio of the original photo.
10. mobile terminal image pickup method as claimed in claim 9, which is characterized in that dark in the determination original photo The step of portion and highlights includes:
According to the light and shade distribution situation of the original photo, the spare bright-dark cut of preset number is generated;
According to the spare bright-dark cut, the dark portion and highlights combination of preset number are obtained;
Light is selected from the dark portion for obtaining preset number and highlights combination than maximum dark portion and highlights combination as the original The dark portion and highlights of beginning photo.
CN201510731102.5A 2015-10-30 2015-10-30 Mobile terminal filming apparatus and method Active CN105407295B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510731102.5A CN105407295B (en) 2015-10-30 2015-10-30 Mobile terminal filming apparatus and method
PCT/CN2016/103237 WO2017071558A1 (en) 2015-10-30 2016-10-25 Mobile terminal photographing device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510731102.5A CN105407295B (en) 2015-10-30 2015-10-30 Mobile terminal filming apparatus and method

Publications (2)

Publication Number Publication Date
CN105407295A CN105407295A (en) 2016-03-16
CN105407295B true CN105407295B (en) 2019-02-22

Family

ID=55472511

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510731102.5A Active CN105407295B (en) 2015-10-30 2015-10-30 Mobile terminal filming apparatus and method

Country Status (2)

Country Link
CN (1) CN105407295B (en)
WO (1) WO2017071558A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105407295B (en) * 2015-10-30 2019-02-22 努比亚技术有限公司 Mobile terminal filming apparatus and method
CN105959566A (en) * 2016-06-21 2016-09-21 北京奇虎科技有限公司 Image pickup mode switching method and device, and automobile data recorder
CN107087079B (en) * 2017-06-29 2023-05-26 深圳市泰衡诺科技有限公司上海分公司 Brightness adjusting system and method in hands-free call mode
CN108040209B (en) * 2017-12-20 2019-12-13 维沃移动通信有限公司 Shooting method and mobile terminal
CN110738724B (en) * 2019-09-06 2024-05-31 惠州市德赛西威汽车电子股份有限公司 Method and system for automatically adjusting illumination effect of automobile model
JP7342746B2 (en) * 2020-03-12 2023-09-12 株式会社Jvcケンウッド Video processing device, video processing method, and video processing program
CN111770264B (en) * 2020-06-04 2022-04-08 深圳明心科技有限公司 Method and device for improving imaging effect of camera module and camera module

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104052933A (en) * 2013-03-15 2014-09-17 聚晶半导体股份有限公司 Method for determining dynamic range mode, and image obtaining apparatus
CN104349068A (en) * 2013-08-08 2015-02-11 联想(北京)有限公司 Shooting method and electronic equipment
CN104853110A (en) * 2015-04-30 2015-08-19 广东欧珀移动通信有限公司 Flash lamp control method and terminal

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1798265A (en) * 2004-12-28 2006-07-05 金宝电子工业股份有限公司 Method for supplemental lighting image picked up
CN101340523B (en) * 2008-08-14 2011-11-23 北京中星微电子有限公司 Method and apparatus for exposure compensating digital image
CN101997981B (en) * 2010-11-01 2013-08-14 惠州Tcl移动通信有限公司 Mobile phone camera-based latitude realization method and mobile phone
JP2013066142A (en) * 2011-08-31 2013-04-11 Sony Corp Image processing apparatus, image processing method, and program
US20140063288A1 (en) * 2012-08-30 2014-03-06 Pantech Co., Ltd. Imaging apparatus, electronic device and method providing exposure compensation
JP6259185B2 (en) * 2012-12-21 2018-01-10 キヤノン株式会社 IMAGING DEVICE, ITS CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
CN105407295B (en) * 2015-10-30 2019-02-22 努比亚技术有限公司 Mobile terminal filming apparatus and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104052933A (en) * 2013-03-15 2014-09-17 聚晶半导体股份有限公司 Method for determining dynamic range mode, and image obtaining apparatus
CN104349068A (en) * 2013-08-08 2015-02-11 联想(北京)有限公司 Shooting method and electronic equipment
CN104853110A (en) * 2015-04-30 2015-08-19 广东欧珀移动通信有限公司 Flash lamp control method and terminal

Also Published As

Publication number Publication date
WO2017071558A1 (en) 2017-05-04
CN105407295A (en) 2016-03-16

Similar Documents

Publication Publication Date Title
CN105407295B (en) Mobile terminal filming apparatus and method
CN105430295B (en) Image processing apparatus and method
CN104660903B (en) Image pickup method and filming apparatus
CN104811554B (en) The switching method and terminal of camera mode
CN105959543B (en) It is a kind of to remove reflective filming apparatus and method
JP5875732B2 (en) Liquid crystal display
CN105335458B (en) Preview picture method and device
CN105516423A (en) Mobile terminal, data transmission system and mobile terminal shoot method
CN104683697A (en) Shooting parameter adjusting method and device
CN104767941A (en) Photography method and device
CN105245777A (en) Method and device for generating video image
US20200059597A1 (en) Shooting method and terminal
CN105357444B (en) focusing method and device
CN106028098A (en) Video recording method, device, and terminal
CN105915812A (en) Mobile terminal and exposing method and apparatus for the same
CN104796625A (en) Picture synthesizing method and device
CN105163035A (en) Mobile terminal shooting system and mobile terminal shooting method
CN104751488A (en) Photographing method for moving track of moving object and terminal equipment
CN105407275B (en) Photo synthesizer and method
CN104967772B (en) Photographic method and device
CN115359105B (en) Depth-of-field extended image generation method, device and storage medium
CN104639836B (en) The update method of exposal model and system
CN104811624A (en) Infrared shooting method and infrared shooting device
CN117880628A (en) Shooting method and related equipment thereof
CN107197138A (en) A kind of filming apparatus, method and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant