CN105407295A - Mobile terminal photographing device and method - Google Patents

Mobile terminal photographing device and method Download PDF

Info

Publication number
CN105407295A
CN105407295A CN201510731102.5A CN201510731102A CN105407295A CN 105407295 A CN105407295 A CN 105407295A CN 201510731102 A CN201510731102 A CN 201510731102A CN 105407295 A CN105407295 A CN 105407295A
Authority
CN
China
Prior art keywords
light
brightness
ratio
photo
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.)
Granted
Application number
CN201510731102.5A
Other languages
Chinese (zh)
Other versions
CN105407295B (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 mobile terminal photographing device and method. The device comprises a first photographing module, a light ratio obtaining module, a light ratio comparison module, a light intensity adjustment module and a light supplement module; the first photographing module is used to control a mobile terminal to photograph a current scene and obtain an original picture when a photographing instruction is detected; the light ratio obtaining module is used to determine a dark portion and a bright portion in the original picture, and to obtain an actual light radio of the original picture; the light ratio comparison module is used to compare the actual light ratio with a pre-stored expected light ratio and obtain a difference value between the actual light ratio and the expected light ratio; the light intensity adjustment module is used to adjust flash intensity of a flash lamp of the mobile terminal according to the difference value, and is used to control the mobile terminal to photograph the current scene again by using the adjusted flash intensity and obtain a light supplement picture; and the light supplement module is used to supply light for the dark portion or the bright portion of the original picture according to the light supplement picture so as to adjust the actual light ratio of the original picture to be the expected light ratio. When an auxiliary light source and a light reflecting plate do not exist, an adjustment for the light ratio of the photographed picture of the mobile terminal is achieved, and the effect of the photographed picture is good.

Description

Mobile terminal filming apparatus and method
Technical field
The present invention relates to information of mobile terminal interaction technique field, particularly relate to a kind of mobile terminal filming apparatus and method.
Background technology
In current technique for taking, the photo light ratio (light ratio refers to the ratio of the mean flow rate of dark portion and the mean flow rate of highlights in photo) of shooting is generally directly determined by the light conditions of shooting environmental, or can only be regulated and controled by the secondary light source of specialty and the light ratio of reflector to shooting environmental, but, when mobile phone users is taken out of doors, generally can not carry expensive, carry inconvenience, the secondary light source of easy breakage and reflector, thus user cannot adjust the light ratio of taking pictures easily, cause and take pictures, particularly portrait photo, poor effect.
Summary of the invention
Main purpose of the present invention is to provide a kind of mobile terminal filming apparatus and method, is intended to solve the technical problem that cannot adjust the light ratio of taking pictures, poor effect of taking pictures easily.
For achieving the above object, the invention provides a kind of mobile terminal filming apparatus, described mobile terminal filming apparatus comprises:
First taking module, for when photographing instruction being detected, controlling mobile terminal shooting current scene, obtaining original photo;
Light ratio acquisition module, for determining dark portion in described original photo and highlights, and obtains the actual light ratio of this original photo;
Light ratio comparison module, for more described actual light ratio and the expection light ratio that prestores, obtains this actual light than the difference with expection light ratio;
Light intensity adjusting module, for the flash intensity of the photoflash lamp according to described difference adjustment mobile terminal, and controls mobile terminal and again takes current scene with the flash intensity after adjustment, obtain light filling photo;
Supplementary lighting module, for carrying out local light filling according to described light filling photo to the dark portion of original photo or highlights, to be adjusted to expection light ratio by the actual light of described original photo ratio.
Preferably, described supplementary lighting module comprises:
First judging unit, for judging whether described expection light ratio is less than actual light ratio;
First acquiring unit, for be less than when described expection light ratio actual light than time, obtain the brightness of dark portion in described light filling photo;
First adjustment unit, for being the brightness of dark portion in described light filling photo by the brightness adjustment of dark portion in described original photo, to be adjusted to expection light ratio by the actual light of described original photo ratio.
Preferably, described supplementary lighting module also comprises:
Second acquisition unit, for be more than or equal to when described expection light ratio actual light than time, obtain the brightness of described light filling photo middle light;
Second judging unit, for judging whether the brightness of described light filling photo middle light is greater than the threshold brightness causing overexposure;
Second adjustment unit, if be greater than threshold brightness for the brightness of described light filling photo middle light, be then described threshold brightness by the brightness adjustment of described original photo middle light, and the brightness of dark portion in corresponding this original photo of adjustment, so that the actual light of described original photo ratio is adjusted to expection light ratio;
3rd adjustment unit, if be less than or equal to threshold brightness for the brightness of described light filling photo middle light, be then the brightness of described light filling photo middle light by the brightness adjustment of described original photo middle light, so that the actual light of described original photo ratio is adjusted to expection light ratio.
Preferably, described light ratio acquisition module comprises:
Determining unit, for determining dark portion and highlights in described original photo;
Light ratio acquiring unit, for obtaining the brightness of dark portion and the brightness of highlights in described original photo, and according to the brightness of this dark portion and the brightness of highlights, obtains the actual light ratio of this original photo.
Preferably, described determining unit also for:
According to the light and shade distribution situation of described original photo, generate the bright-dark cut for subsequent use of preset number;
According to described bright-dark cut for subsequent use, obtain dark portion and the highlights combination of preset number;
The maximum dark portion of light ratio and highlights combination is selected as the dark portion of this original photo and highlights from the dark portion of described acquisition preset number and highlights combination.
For achieving the above object, the present invention also provides a kind of mobile terminal image pickup method, and described mobile terminal image pickup method comprises:
When photographing instruction being detected, controlling mobile terminal shooting current scene, obtaining original photo;
Determine the dark portion in described original photo and highlights, and obtain the actual light ratio of this original photo;
More described actual light ratio and the expection light ratio prestored, obtain this actual light than the difference with expection light ratio;
According to the flash intensity of the photoflash lamp of described difference adjustment mobile terminal, and control mobile terminal and again take current scene with the flash intensity after adjustment, obtain light filling photo;
According to described light filling photo, local light filling is carried out to the dark portion of original photo or highlights, so that the actual light of described original photo ratio is adjusted to expection light ratio.
Preferably, describedly according to described light filling photo, local light filling is carried out to the dark portion of original photo or highlights, the actual light of described original photo to be comprised than the step being adjusted to expection light ratio:
Judge whether described expection light ratio is less than actual light ratio;
When described expection light ratio be less than actual light than time, obtain the brightness of dark portion in described light filling photo;
Be the brightness of dark portion in described light filling photo by the brightness adjustment of dark portion in described original photo, so that the actual light of described original photo ratio is adjusted to expection light ratio.
Preferably, describedly judge described expection light ratio also comprises after whether being less than the step of actual light ratio:
When described expection light ratio be more than or equal to actual light than time, obtain the brightness of described light filling photo middle light;
Judge whether the brightness of described light filling photo middle light is greater than the threshold brightness causing overexposure;
If the brightness of described light filling photo middle light is greater than threshold brightness, be then described threshold brightness by the brightness adjustment of described original photo middle light, and the corresponding brightness adjusting dark portion in this original photo, so that the actual light of described original photo ratio is adjusted to expection light ratio;
If the brightness of described light filling photo middle light is less than or equal to threshold brightness, be then the brightness of described light filling photo middle light by the brightness adjustment of described original photo middle light, so that the actual light of described original photo ratio is adjusted to expection light ratio.
Preferably, describedly determine dark portion and highlights in described original photo, and the step obtaining the actual light ratio of this original photo comprises:
Determine dark portion and highlights in described original photo;
Obtain the brightness of dark portion and the brightness of highlights in described original photo, and according to the brightness of this dark portion and the brightness of highlights, obtain the actual light ratio of this original photo.
Preferably, describedly determine that the step of dark portion and highlights in described original photo comprises:
According to the light and shade distribution situation of described original photo, generate the bright-dark cut for subsequent use of preset number;
According to described bright-dark cut for subsequent use, obtain dark portion and the highlights combination of preset number;
The maximum dark portion of light ratio and highlights combination is selected as the dark portion of this original photo and highlights from the dark portion of described acquisition preset number and highlights combination.
The present invention is by pressing shutter shooting current scene during user, whether the actual light of automatic decision original photo is than equal with expection light ratio, if not etc., then whether adjust the flash intensity of photoflash lamp and again take to obtain light filling photo to current scene with the difference of expection light ratio according to border light ratio, finally according to light filling photo, local light filling is carried out to the dark portion of original photo or highlights, so that the actual light of original photo ratio is adjusted to expection light ratio, thus when there is no secondary light source and reflector, achieve the adjustment of light ratio that mobile terminal taken pictures, user only need press shutter as usual and take pictures, without the need to any troublesome operation, can realize easily taking pictures and automatic adjustment to light ratio of taking pictures, make to take pictures, particularly portrait photo, effect is better.
Accompanying drawing explanation
Fig. 1 is the hardware configuration signal of the mobile terminal realizing each embodiment of the present invention;
Fig. 2 is the electrical structure block diagram of camera in Fig. 1;
Fig. 3 is the high-level schematic functional block diagram of mobile terminal filming apparatus first embodiment of the present invention;
Fig. 4 is the refinement high-level schematic functional block diagram of supplementary lighting module in mobile terminal filming apparatus second embodiment of the present invention;
Fig. 5 is the refinement high-level schematic functional block diagram of light ratio acquisition module in mobile terminal filming apparatus the 3rd embodiment of the present invention;
Fig. 6 is the schematic flow sheet of mobile terminal image pickup method first embodiment of the present invention;
Fig. 7 carries out local light filling according to light filling photo to the dark portion of original photo or highlights in mobile terminal image pickup method second embodiment of the present invention, with by the actual light of original photo than the stream thinning journey schematic diagram of step being adjusted to expection light ratio;
Fig. 8 determines dark portion in original photo and highlights in mobile terminal image pickup method the 3rd embodiment of the present invention, and obtains the stream thinning journey schematic diagram of the step of the actual light ratio of this original photo;
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further with reference to accompanying drawing.
Embodiment
Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
The mobile terminal realizing each embodiment of the present invention is described referring now to accompanying drawing.In follow-up description, use the suffix of such as " module ", " parts " or " unit " for representing element only in order to be conducive to explanation of the present invention, itself is specific meaning not.Therefore, " module " and " parts " can mixedly use.
Mobile terminal can be implemented in a variety of manners.Such as, the terminal described in the present invention can comprise the such as mobile terminal of mobile phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (panel computer), PMP (portable media player), guider etc. and the fixed terminal of such as digital TV, desktop computer etc.Below, suppose that terminal is mobile terminal.But it will be appreciated by those skilled in the art that except the element except being used in particular for mobile object, structure according to the embodiment of the present invention also can be applied to the terminal of fixed type.
Fig. 1 is the hardware configuration signal of the mobile terminal realizing each embodiment of the present invention.
Mobile terminal 100 can comprise wireless communication unit 110, A/V (audio/video) input unit 120, user input unit 130, sensing cell 140, output unit 150, memory 160, interface unit 170, controller 180 and power subsystem 190 etc.Fig. 1 shows the mobile terminal with various assembly, it should be understood that, does not require to implement all assemblies illustrated.Can alternatively implement more or less assembly.Will be discussed in more detail below the element of mobile terminal.
Wireless communication unit 110 generally includes one or more assembly, and it allows the radio communication between mobile terminal 100 and radio communication device or network.Such as, wireless communication unit can comprise at least one in broadcast reception module 111, mobile communication module 112, wireless Internet module 113, short range communication module 114 and positional information module 115.
Broadcast reception module 111 via broadcast channel from external broadcasting management server receiving broadcast signal and/or broadcast related information.Broadcast channel can comprise satellite channel and/or terrestrial channel.Broadcast management server can be generate and send the server of broadcast singal and/or broadcast related information or the broadcast singal generated before receiving and/or broadcast related information and send it to the server of terminal.Broadcast singal can comprise TV broadcast singal, radio signals, data broadcasting signal etc.And broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast related information also can provide via mobile communications network, and in this case, broadcast related information can be received by mobile communication module 112.Broadcast singal can exist in a variety of manners, such as, it can exist with the form of the electronic service guidebooks (ESG) of the electronic program guides of DMB (DMB) (EPG), digital video broadcast-handheld (DVB-H) etc.Broadcast reception module 111 can by using the broadcast of various types of broadcaster Received signal strength.Especially, broadcast reception module 111 can by using such as multimedia broadcasting-ground (DMB-T), DMB-satellite (DMB-S), digital video broadcasting-hand-held (DVB-H), forward link media (MediaFLO ) the digital broadcast apparatus receiving digital broadcast of data broadcast device, received terrestrial digital broadcasting integrated service (ISDB-T) etc.Broadcast reception module 111 can be constructed to be applicable to providing the various broadcaster of broadcast singal and above-mentioned digital broadcast apparatus.The broadcast singal received via broadcast reception module 111 and/or broadcast related information can be stored in memory 160 (or storage medium of other type).
Radio signal is sent at least one in base station (such as, access point, Node B etc.), exterior terminal and server and/or receives radio signals from it by mobile communication module 112.Various types of data that such radio signal can comprise voice call signal, video calling signal or send according to text and/or Multimedia Message and/or receive.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.This module can be inner or be externally couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by this module can comprise WLAN (WLAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave access), HSDPA (high-speed downlink packet access) etc.
Short range communication module 114 is the modules for supporting junction service.Some examples of short-range communication technology comprise bluetooth tM, radio-frequency (RF) identification (RFID), Infrared Data Association (IrDA), ultra broadband (UWB), purple honeybee tMetc..
Positional information module 115 is the modules of positional information for checking or obtain mobile terminal.The typical case of positional information module is GPS (global pick device).According to current technology, GPS module 115 calculates from the range information of three or more satellite and correct time information and for the Information application triangulation calculated, thus calculates three-dimensional current location information according to longitude, latitude and pin-point accuracy.Current, the method for calculating location and temporal information uses three satellites and by the error of the position that uses an other satellite correction calculation to go out and temporal information.In addition, GPS module 115 can carry out computational speed information by Continuous plus current location information in real time.
A/V input unit 120 is for audio reception or vision signal.A/V input unit 120 can comprise camera 121 and microphone 122, and the view data of camera 121 to the static images obtained by image capture apparatus in Video Capture pattern or image capture mode or video processes.Picture frame after process may be displayed on display unit 151.Picture frame after camera 121 processes can be stored in memory 160 (or other storage medium) or via wireless communication unit 110 and send, and can provide two or more cameras 121 according to the structure of mobile terminal.Such acoustic processing can via microphones sound (voice data) in telephone calling model, logging mode, speech recognition mode etc. operational mode, and can be voice data by microphone 122.Audio frequency (voice) data after process can be converted to the formatted output that can be sent to mobile communication base station via mobile communication module 112 when telephone calling model.Microphone 122 can be implemented various types of noise and eliminate (or suppress) algorithm and receiving and sending to eliminate (or suppression) noise or interference that produce in the process of audio signal.
User input unit 130 can generate key input data to control the various operations of mobile terminal according to the order of user's input.User input unit 130 allows user to input various types of information, and keyboard, the young sheet of pot, touch pad (such as, detecting the touch-sensitive assembly of the change of the resistance, pressure, electric capacity etc. that cause owing to being touched), roller, rocking bar etc. can be comprised.Especially, when touch pad is superimposed upon on display unit 151 as a layer, touch-screen can be formed.
Sensing cell 140 detects the current state of mobile terminal 100, (such as, mobile terminal 100 open or close state), the position of mobile terminal 100, user for mobile terminal 100 contact (namely, touch input) presence or absence, the orientation of mobile terminal 100, the acceleration of mobile terminal 100 or speed is moved and direction etc., and generate order or the signal of the operation for controlling mobile terminal 100.Such as, when mobile terminal 100 is embodied as sliding-type mobile phone, sensing cell 140 can sense this sliding-type phone and open or close.In addition, whether whether sensing cell 140 can detect power subsystem 190 provides electric power or interface unit 170 to couple with external device (ED).Sensing cell 140 can comprise proximity transducer 1410 and will be described this in conjunction with touch-screen below.
Interface unit 170 is used as at least one external device (ED) and is connected the interface that can pass through with mobile terminal 100.Such as, external device (ED) can comprise wired or wireless head-band earphone port, external power source (or battery charger) port, wired or wireless FPDP, memory card port, for connecting the port, audio frequency I/O (I/O) port, video i/o port, ear port etc. of the device with identification module.Identification module can be that storage uses the various information of mobile terminal 100 for authentication of users and can comprise subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) etc.In addition, the device (hereinafter referred to " recognition device ") with identification module can take the form of smart card, and therefore, recognition device can be connected with mobile terminal 100 via port or other jockey.Interface unit 170 may be used for receive from external device (ED) input (such as, data message, electric power etc.) and the input received be transferred to the one or more element in mobile terminal 100 or may be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 100 is connected with external base, interface unit 170 can be used as to allow by it electric power to be provided to the path of mobile terminal 100 from base or can be used as the path that allows to be transferred to mobile terminal by it from the various command signals of base input.The various command signal inputted from base or electric power can be used as and identify whether mobile terminal is arranged on the signal base exactly.Output unit 150 is constructed to provide output signal (such as, audio signal, vision signal, alarm signal, vibration signal etc.) with vision, audio frequency and/or tactile manner.Output unit 150 can comprise display unit 151, dio Output Modules 152, alarm unit 153 etc.
Display unit 151 may be displayed on the information of process in mobile terminal 100.Such as, when mobile terminal 100 is in telephone calling model, display unit 151 can show with call or other communicate (such as, text messaging, multimedia file are downloaded etc.) be correlated with user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling pattern or image capture mode, display unit 151 can the image of display capture and/or the image of reception, UI or GUI that video or image and correlation function are shown etc.
Meanwhile, when display unit 151 and touch pad as a layer superposed on one another to form touch-screen time, display unit 151 can be used as input unit and output device.Display unit 151 can comprise at least one in liquid crystal display (LCD), thin-film transistor LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc.Some in these displays can be constructed to transparence and watch from outside to allow user, and this can be called transparent display, and typical transparent display can be such as TOLED (transparent organic light emitting diode) display etc.According to the specific execution mode wanted, mobile terminal 100 can comprise two or more display units (or other display unit), such as, mobile terminal can comprise 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 and inputs area.
When dio Output Modules 152 can be under the isotypes such as call signal receiving mode, call mode, logging mode, speech recognition mode, broadcast reception mode at mobile terminal, voice data convert audio signals that is that wireless communication unit 110 is received or that store in memory 160 and exporting as sound.And dio Output Modules 152 can provide the audio frequency relevant to the specific function that mobile terminal 100 performs to export (such as, call signal receives sound, message sink sound etc.).Dio Output Modules 152 can comprise pick-up, buzzer etc.
Alarm unit 153 can provide and export that event informed to mobile terminal 100.Typical event can comprise calling reception, message sink, key signals input, touch input etc.Except audio or video exports, alarm unit 153 can provide in a different manner and export with the generation of notification event.Such as, alarm unit 153 can provide output with the form of vibration, when receive calling, message or some other enter communication (incomingcommunication) time, alarm unit 153 can provide sense of touch to export (that is, vibrating) to notify to user.By providing such sense of touch to export, even if when the mobile phone of user is in the pocket of user, user also can identify the generation of various event.Alarm unit 153 also can provide the output of the generation of notification event via display unit 151 or dio Output Modules 152.
Memory 160 software program that can store process and the control operation performed by controller 180 etc., or temporarily can store oneself through exporting the data (such as, telephone directory, message, still image, video etc.) that maybe will export.And, memory 160 can store about when touch be applied to touch-screen time the vibration of various modes that exports and the data of audio signal.
Memory 160 can comprise the storage medium of at least one type, described storage medium comprises flash memory, hard disk, multimedia card, card-type memory (such as, SD or DX memory etc.), random access storage device (RAM), static random-access memory (SRAM), read-only memory (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc.And mobile terminal 100 can be connected the memory function of execute store 160 network storage device with by network cooperates.
Controller 180 controls the overall operation of mobile terminal usually.Such as, controller 180 performs the control relevant to voice call, data communication, video calling etc. and process.In addition, controller 180 can comprise the multi-media module 181 for reproducing (or playback) multi-medium data, and multi-media module 181 can be configured in controller 180, or can be configured to be separated with controller 180.Controller 180 can pattern recognition process, is identified as character or image so that input is drawn in the handwriting input performed on the touchscreen or picture.
Power subsystem 190 receives external power or internal power and provides each element of operation and the suitable electric power needed for assembly under the control of controller 180.
Various execution mode described herein can to use such as computer software, the computer-readable medium of hardware or its any combination implements.For hardware implementation, execution mode described herein can by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), processor, controller, microcontroller, microprocessor, being designed at least one performed in the electronic unit of function described herein and implementing, in some cases, such execution mode can be implemented in controller 180.For implement software, the execution mode of such as process or function can be implemented with allowing the independent software module performing at least one function or operation.Software code can be implemented by the software application (or program) write with any suitable programming language, and software code can be stored in memory 160 and to be performed by controller 180.
So far, oneself is through the mobile terminal according to its functional description.Below, for the sake of brevity, by the slide type mobile terminal that describes in various types of mobile terminals of such as folded form, board-type, oscillating-type, slide type mobile terminal etc. exemplarily.Therefore, the present invention can be applied to the mobile terminal of any type, and is not limited to slide type mobile terminal.
With reference to the electrical structure block diagram that Fig. 2, Fig. 2 are camera in Fig. 1.
Phtographic lens 1211 is made up of the multiple optical lens for the formation of shot object image, is single-focus lens or zoom lens.Phtographic lens 1211 can move in the direction of the optical axis under the control of lens driver 1221, lens driver 1221 is according to the control signal from lens driving control circuit 1222, control the focal position of phtographic lens 1211, when zoom lens, also can control focal length.Lens driving control circuit 1222 carries out the drived control of lens driver 1221 according to the control command from microcomputer 1217.
Imaging apparatus 1212 is configured with near the position of the shot object image formed on the optical axis of phtographic lens 1211, by phtographic lens 1211.Imaging apparatus 1212 is for making a video recording to shot object image and obtaining image data.On imaging apparatus 1212 two dimension and be arranged in a matrix the photodiode forming each pixel.Each photodiode produces the opto-electronic conversion electric current corresponding with light income, and this opto-electronic conversion electric current carries out charge accumulation by the capacitor be connected with each photodiode.The front surface of each pixel is configured with the RGB colour filter of Bayer arrangement.
Imaging apparatus 1212 is connected with imaging circuit 1213, this imaging circuit 1213 carries out charge accumulation and controls and picture signal reading control in imaging apparatus 1212, to the picture signal (analog picture signal) of this reading reduce reset noise after carry out waveform shaping, and then carry out gain raising etc. to become suitable signal level.Imaging circuit 1213 is connected with A/D converter 1214, and this A/D converter 1214 pairs of analog picture signals carry out analog-to-digital conversion, to bus 1227 output digital image signal (hereinafter referred to as view data).
Bus 1227 is the transfer paths of the various data that the inside for being transmitted in camera reads or generates.Above-mentioned A/D converter 1214 is connected in bus 1227, be connected to image processor 1215, jpeg processor 1216, microcomputer 1217, SDRAM (SynchronousDynamicrandomaccessmemory in addition, SDRAM) 1218, memory interface (hereinafter referred to as memory I/F) 1219, LCD (LiquidCrystalDisplay, liquid crystal display) driver 1220.
Image processor 1215 carries out OB to the view data of the output based on imaging apparatus 1212 and subtracts each other process, blank level adjustment, color matrix computing, gamma conversion, color difference signal process, noise removal process, changes the various image procossing such as process, edge treated simultaneously.Jpeg processor 1216 by Imagery Data Recording in recording medium 1225 time, according to JPEG compress mode compression from SDRAM1218 read view data.In addition, jpeg processor 1216 carries out the decompression of jpeg image data in order to carry out image reproducing display.When decompressing, read the file that is recorded in recording medium 1225, implement decompression in jpeg processor 1216 after, the view data of decompression to be temporarily stored in SDRAM1218 and to show on LCD1226.H.264 in addition, in the present embodiment, what adopt as image compression decompression mode is JPEG mode, but compressed and decompressed mode is not limited thereto, and certainly can adopt MPEG, TIFF, other the compressed and decompressed mode such as.
Microcomputer 1217 plays the function of the control part as this camera entirety, the unified various process sequences controlling camera.Microcomputer 1217 is connected to operating unit 1223 and flash memory 1224.
Operating unit 1223 includes but not limited to physical button or virtual key, this entity or virtual key can be the operational controls such as various load button and various enter keies such as power knob, key of taking pictures, edit key, dynamic image button, reproduction button, menu button, cross key, OK button, delete button, large buttons, detect the mode of operation of these operational controls.
Testing result is exported to microcomputer 1217.In addition, be provided with touch panel at the front surface of the LCD1226 as display, detect the touch location of user, this touch location is exported to microcomputer 1217.Microcomputer 1217, according to the testing result of the operating position from operating unit 1223, performs the various process sequences corresponding with the operation of user.
Flash memory 1224 stores the program of the various process sequences for performing microcomputer 1217.Microcomputer 1217 carries out the control of camera entirety according to this program.In addition, flash memory 1224 stores the various adjusted values of camera, and microcomputer 1217 reads adjusted value, carries out the control of camera according to this adjusted value.
SDRAM1218 is can the electricity volatile memory of rewriting for what carry out view data etc. temporarily storing.This SDRAM1218 temporarily stores the view data that exports from A/D converter 1214 and image processor 1215, jpeg processor 1216 etc., to have carried out the view data after processing.
Memory interface 1219 is connected with recording medium 1225, carries out the control by view data and the first-class data writing recording medium 1225 of file be attached in view data and reading from recording medium 1225.Recording medium 1225 be such as can on camera main-body the recording medium such as memory card of disassembled and assembled freely, but being not limited thereto, also can be the hard disk etc. be built in camera main-body.
Lcd driver 1210 is connected with LCD1226, view data after being processed by image processor 1215 is stored in SDRAM1218, when needing display, read the view data that SDRAM1218 stores also to show on LCD1226, or the compressed view data of jpeg processor 1216 is stored in SDRAM1218, when needs show, jpeg processor 1216 reads the compressed view data of SDRAM1218, then decompresses, and the view data after decompressing is shown by LCD1226.
Image display is carried out at the back side that LCD1226 is configured in camera main-body.This LCD1226LCD), but be not limited thereto, also can adopt the various display floaters (LCD1226) such as organic EL, but be not limited thereto, also can adopt the various display floaters such as organic EL.
Based on the electrical structure schematic diagram of above-mentioned mobile terminal hardware configuration and camera, propose each embodiment that mobile terminal picture of the present invention uploads device, mobile terminal picture uploads the part that device is mobile terminal.
With reference to Fig. 3, the invention provides a kind of mobile terminal filming apparatus, in mobile terminal filming apparatus first embodiment, this device comprises:
First taking module 10, for when photographing instruction being detected, controlling mobile terminal shooting current scene, obtaining original photo;
Before user operation mobile terminal is taken pictures, first to mobile terminal input expection light ratio (light ratio is the ratio of dark portion brightness and highlights brightness in an image), this expection light ratio and user expect the value of light ratio in photo effect; Then user presses the shutter of mobile terminal, mobile terminal produces corresponding photographing instruction, when photographing instruction being detected, the first taking module 10 controls mobile terminal and takes the current scene that its view-finder gathers, the original photo of not compensated under the surround lighting of acquisition current scene.
Light ratio acquisition module 20, for determining dark portion in original photo and highlights, and obtains the actual light ratio of this original photo;
Light ratio acquisition module 20 is judged by peak edge, identifies dark portion in original photo, highlights and bright-dark cut; Detailed process is: light ratio acquisition module 20 is according to the light and shade distribution situation of original photo, generate the bright-dark cut for subsequent use of preset number, generating mode first can obtain the brightness of all pixels in original photo, select the region that vicinity points brightness changing value is greater than setting threshold, and joint area one line these selected is to form preset number bright-dark cut for subsequent use; Then light ratio acquisition module 20 obtains a preset number dark portion and highlights combination according to different bright-dark cut for subsequent use; Obtain dark portion all pixels average brightness (i.e. dark portion brightness) and all pixel average brightness of highlights (i.e. highlights brightness) in each dark portion and highlights combination again, light ratio acquisition module 20 obtains the light ratio of each dark portion and highlights combination further according to this dark portion brightness and highlights brightness, maximum for light ratio dark portion and highlights are combined as the dark portion of original photo and the splitting scheme of highlights, combines the bright-dark cut of corresponding bright-dark cut for subsequent use as original photo by the maximum dark portion of light ratio and highlights.
In order to understand the deterministic process of dark portion and highlights in original photo better, below with object lesson aid illustration: such as, according in original photo between pixel brightness changing value be greater than the area distribution of setting threshold, 3 bright-dark cut A1 for subsequent use are formed according to this area distribution, A2 and A3, a side region larger according to bright-dark cut brightness is highlights, the less side region of brightness is the rule of dark portion, obtain the corresponding dark portion of bright-dark cut A1 and highlights combination a1, the corresponding dark portion of bright-dark cut A2 and highlights combine the corresponding dark portion of a2 and bright-dark cut A3 and highlights combination (hereinafter referred to as combination) a3, obtain the light ratio L1 of combination a1, the light ratio L2 of combination a2 and the light ratio L3 of combination a3, relatively light ratio L1, L2 and L3 is (if light ratio L1 is 1:2, light ratio L2 is 1:2.2, light ratio L3 is 1:1.9), obtain light ratio L2 maximum, then using the splitting scheme of bright-dark cut A2 as original photo dark portion and highlights, using combination a2 as the dark portion of original photo and highlights, using the actual light ratio of light ratio L2 as original photo.
In addition, in the present embodiment, the brightness of pixel can be represented by this pixel RGB (RGB) three primary colors yield value sum.
Light ratio comparison module 30, for the expection light ratio comparing actual light ratio and prestore, obtains this actual light than the difference with expection light ratio;
Such as, expection light ratio is 1:1, actual light is than being 1:4, because light ratio is the brightness of dark portion brightness ratio highlights, so could be equal with expection light ratio 1:1 by 3 the ratio units of the dark portion luminance raising in actual light ratio, namely light ratio comparison module 30 show that actual light is 3 ratio units than the difference with expection light ratio; Light ratio is 1:8 as expected, and actual light, need could be equal with expection light ratio 1:8 than middle light luminance raising 4 ratio units by actual light than for 1:4, and namely light ratio comparison module 30 show that actual light is 4 ratio units than the difference with expection light ratio.
Light intensity adjusting module 40, for the flash intensity of photoflash lamp according to difference adjustment mobile terminal, and controls mobile terminal and again takes current scene with the flash intensity after adjustment, obtain light filling photo;
Mobile terminal is provided with the photoflash lamp that flash intensity is adjustable, actual light is pre-stored in mobile terminal than the corresponding relation with the expection difference of light ratio and the flash intensity of mobile terminal photoflash lamp.Such as, expection light ratio is 1:8, actual light is than being 1:4, the dark portion brightness of original photo is 50, actual light is 4 ratio units than the difference with expection light ratio, namely needs the brightness of lifting 200, and light intensity adjusting module 40 adjusts the photoflash lamp of mobile terminal to corresponding flash intensity according to actual light than with the difference of expection light ratio, and control mobile terminal and again take current scene with the flash intensity after adjustment, and obtain light filling photo.
Because the disposal ability of current mobile terminal is very powerful, shutter shooting current scene is pressed to obtain original photo from user, current scene is again taken according to the flash intensity after adjustment very short with the time spent by obtaining between light filling photo to mobile terminal, twice is not taken at user's mobile terminal, as broad as long on experiencing with normal single shot.
Supplementary lighting module 50, for carrying out local light filling according to light filling photo to the dark portion of original photo or highlights, to be adjusted to expection light ratio by the actual light of original photo ratio.
According to the light and shade dividing line generating mode identical with original photo, determine dark portion and the highlights of light filling photo, and obtain the dark portion brightness of light filling photo and highlights brightness, supplementary lighting module 50 carries out local light filling according to the dark portion brightness of light filling photo and highlights brightness to the dark portion of original photo or highlights, namely when the dark portion of original photo needs light filling, then supplementary lighting module 50 is according to the dark portion brightness of the dark portion brightness adjustment original photo of light filling photo; When the highlights of original photo needs light filling, then supplementary lighting module 50 is according to the highlights brightness of the highlights brightness adjustment original photo of light filling photo; Thus the actual light of original photo ratio is adjusted to expection light ratio, and then light ratio is adjusted to the original photo of expection light ratio as exporting photo storage in mobile terminal.
In the present embodiment, during by pressing shutter shooting current scene user, whether the actual light of automatic decision original photo is than equal with expection light ratio, if not etc., then whether adjust the flash intensity of photoflash lamp and again take to obtain light filling photo to current scene with the difference of expection light ratio according to border light ratio, finally according to light filling photo, local light filling is carried out to the dark portion of original photo or highlights, so that the actual light of original photo ratio is adjusted to expection light ratio, thus when there is no secondary light source and reflector, achieve the adjustment of light ratio that mobile terminal taken pictures, user only need press shutter as usual and take pictures, without the need to any troublesome operation, can realize easily taking pictures and automatic adjustment to light ratio of taking pictures, make to take pictures, particularly portrait photo, effect is better.
Further, on the basis of mobile terminal filming apparatus first embodiment of the present invention, propose mobile terminal filming apparatus second embodiment, with reference to Fig. 4, in a second embodiment, supplementary lighting module 50 comprises:
First judging unit 51, for judging whether expection light ratio is less than actual light ratio;
First acquiring unit 52, for when expect light ratio be less than actual light than time, obtain the brightness of dark portion in light filling photo;
First adjustment unit 53, for by the brightness adjustment of dark portion in original photo being the brightness of dark portion in light filling photo, to be adjusted to expection light ratio by the actual light of original photo ratio.
After acquisition light filling photo, first judging unit 51 judges whether expection light ratio is less than actual light ratio, if when expect light ratio be less than actual light than time, such as expect that light ratio is 1:1, actual light is than being 1:4, need promote the brightness of dark portion in original photo and keep the brightness of highlights constant, so the first acquiring unit 52 extracts the brightness of dark portion in light filling photo, namely the RGB yield value of all pixels of dark portion in light filling photo is obtained, then the brightness adjustment of dark portion in original photo is the brightness of dark portion in light filling photo by the first adjustment unit 53, RGB yield value correspondence by all pixels of dark portion in original photo is adjusted to the RGB yield value of all pixels of dark portion in light filling photo, so that the actual light of original photo ratio is adjusted to expection light ratio, 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 also comprises:
Second acquisition unit 54, for when expect light ratio be more than or equal to actual light than time, obtain the brightness of light filling photo middle light;
Second judging unit 55, for judging whether the brightness of light filling photo middle light is greater than the threshold brightness causing overexposure;
Second adjustment unit 56, if be greater than threshold brightness for the brightness of light filling photo middle light, be then threshold brightness by the brightness adjustment of original photo middle light, and the brightness of dark portion in corresponding this original photo of adjustment, so that the actual light of original photo ratio is adjusted to expection light ratio;
The brightness adjustment of original photo middle light if be less than or equal to threshold brightness for the brightness of light filling photo middle light, is then the brightness of light filling photo middle light, so that the actual light of original photo ratio is adjusted to expection light ratio by the 3rd adjustment unit 57.
When expect light ratio be greater than actual light than time, such as expect that light ratio is 1:8, actual light is than being 1:4, need promote the brightness of original photo middle light and keep the brightness of dark portion constant, so second acquisition unit 54 obtains the brightness of light filling photo middle light, namely obtain the RGB yield value of all pixels of light filling photo middle light.
But, carrying out promoting to the brightness of original photo highlights needs to avoid the brightness of the highlights after promoting to produce overexposure, so need the second judging unit 55 to judge whether the brightness of light filling photo middle light is greater than the threshold brightness causing overexposure, if the brightness of light filling photo middle light is greater than threshold brightness, show that the brightness adjustment of original photo middle light is that the brightness of light filling photo middle light there will be overexposure, then the brightness adjustment of original photo middle light is threshold brightness by the second adjustment unit 56, and the corresponding brightness adjusting dark portion in this original photo, so that the actual light of original photo ratio is adjusted to expection light ratio.Such as expect that light ratio is 1:6, actual light is than being 1:2, the brightness of original photo highlights is 200, the brightness of original photo dark portion is 100, and the brightness of light filling photo highlights is 600, and threshold brightness is 300, because the brightness of light filling photo highlights is greater than threshold brightness, so be 300 by the brightness adjustment of original photo highlights, be 50 by the brightness adjustment of original photo highlights, to make the ratio of the actual light after adjustment for 1:6.
If the brightness of light filling photo middle light is less than or equal to threshold brightness, then the brightness adjustment of original photo middle light is the brightness of light filling photo middle light by the 3rd adjustment unit 57, so that the actual light of original photo ratio is adjusted to expection light ratio.Such as, expection light ratio is 1:3, actual light is than being 1:2, the brightness of original photo highlights is 200, and the brightness of original photo dark portion is 100, and the brightness of light filling photo highlights is 300, threshold brightness is 350, because the brightness of light filling photo highlights is less than threshold brightness, so be 300 by the brightness adjustment of original photo highlights, keep the brightness of original photo dark portion constant.
In the present embodiment, there is provided a kind of, according to the adjustment of light filling photo, local light filling is carried out so that the actual light of original photo is expected the mode of light ratio than being adjusted to the dark portion of original photo or highlights, divide three kinds of situation differentiated treatment, ensureing, under the prerequisite that original photo unduly exposes, to realize the adjustment to original photo light ratio.
Further, on the basis of mobile terminal filming apparatus first embodiment of the present invention, propose mobile terminal filming apparatus the 3rd embodiment, with reference to Fig. 5, in the third embodiment, light ratio acquisition module 20 comprises:
Determining unit 21, for determining dark portion and highlights in original photo;
Determining unit 21 also for:
According to the light and shade distribution situation of original photo, generate the bright-dark cut for subsequent use of preset number;
According to bright-dark cut for subsequent use, obtain dark portion and the highlights combination of preset number;
The maximum dark portion of light ratio and highlights combination is selected as the dark portion of this original photo and highlights from obtaining the dark portion of preset number and highlights combination.
Light ratio acquiring unit 22, for obtaining the brightness of dark portion and the brightness of highlights in original photo, and according to the brightness of this dark portion and the brightness of highlights, obtains the actual light ratio of this original photo.
Determining unit 21 is judged by peak edge, identifies dark portion in original photo, highlights and bright-dark cut; Detailed process is: according to the light and shade distribution situation of original photo, generate the bright-dark cut for subsequent use of preset number, generating mode first can obtain the brightness of all pixels in original photo, select the region that vicinity points brightness changing value is greater than setting threshold, and joint area one line these selected is to form preset number bright-dark cut for subsequent use; Then a preset number dark portion and highlights combination is obtained according to different bright-dark cut for subsequent use; Light ratio acquiring unit 22 obtains dark portion all pixels average brightness (i.e. dark portion brightness) and all pixel average brightness of highlights (i.e. highlights brightness) in each dark portion and highlights combination again, and the light ratio of each dark portion and highlights combination is obtained further according to this dark portion brightness and highlights brightness, maximum for light ratio dark portion and highlights are combined as the dark portion of original photo and the splitting scheme of highlights, combines the bright-dark cut of corresponding bright-dark cut for subsequent use as original photo by the maximum dark portion of light ratio and highlights.
In order to understand the deterministic process of dark portion and highlights in original photo better, below with object lesson aid illustration: such as, according in original photo between pixel brightness changing value be greater than the area distribution of setting threshold, 3 bright-dark cut A1 for subsequent use are formed according to this area distribution, A2 and A3, a side region larger according to bright-dark cut brightness is highlights, the less side region of brightness is the rule of dark portion, obtain the corresponding dark portion of bright-dark cut A1 and highlights combination a1, the corresponding dark portion of bright-dark cut A2 and highlights combine the corresponding dark portion of a2 and bright-dark cut A3 and highlights combination (hereinafter referred to as combination) a3, obtain the light ratio L1 of combination a1, the light ratio L2 of combination a2 and the light ratio L3 of combination a3, relatively light ratio L1, L2 and L3 is (if light ratio L1 is 1:2, light ratio L2 is 1:2.2, light ratio L3 is 1:1.9), obtain light ratio L2 maximum, then using the splitting scheme of bright-dark cut A2 as original photo dark portion and highlights, using combination a2 as the dark portion of original photo and highlights, using the actual light ratio of light ratio L2 as original photo.
In the present embodiment, there is provided a kind of determine original photo dark portion and highlights, acquisition original photo the execution mode of actual light ratio, thus mobile terminal can the actual light ratio of quick obtaining original photo, the flash intensity of photoflash lamp during to determine that mobile terminal is taken fast next time, obtain light filling photo more quickly, thus the local light filling making to carry out dark portion or highlights according to light filling photo to original photo is more efficient.
The present invention also provides a kind of mobile terminal image pickup method, is moving in mobile terminal image pickup method first embodiment, and with reference to Fig. 6, the method comprises:
Step S10, when photographing instruction being detected, controlling mobile terminal shooting current scene, obtaining original photo;
Before user operation mobile terminal is taken pictures, first to mobile terminal input expection light ratio (light ratio is the ratio of dark portion brightness and highlights brightness in an image), this expection light ratio and user expect the value of light ratio in photo effect; Then user presses the shutter of mobile terminal, mobile terminal produces corresponding photographing instruction, when photographing instruction being detected, controlling mobile terminal and the current scene that its view-finder gathers is taken, the original photo of not compensated under the surround lighting of acquisition current scene.
Step S20, determines the dark portion in original photo and highlights, and obtains the actual light ratio of this original photo;
Judged by peak edge, identify dark portion in original photo, highlights and bright-dark cut; Detailed process is: according to the light and shade distribution situation of original photo, generate the bright-dark cut for subsequent use of preset number, generating mode first can obtain the brightness of all pixels in original photo, select the region that vicinity points brightness changing value is greater than setting threshold, and joint area one line these selected is to form preset number bright-dark cut for subsequent use; Then a preset number dark portion and highlights combination is obtained according to different bright-dark cut for subsequent use; Obtain dark portion all pixels average brightness (i.e. dark portion brightness) and all pixel average brightness of highlights (i.e. highlights brightness) in each dark portion and highlights combination again, and the light ratio of each dark portion and highlights combination is obtained further according to this dark portion brightness and highlights brightness, maximum for light ratio dark portion and highlights are combined as the dark portion of original photo and the splitting scheme of highlights, combines the bright-dark cut of corresponding bright-dark cut for subsequent use as original photo by the maximum dark portion of light ratio and highlights.
In order to understand the deterministic process of dark portion and highlights in original photo better, below with object lesson aid illustration: such as, according in original photo between pixel brightness changing value be greater than the area distribution of setting threshold, 3 bright-dark cut A1 for subsequent use are formed according to this area distribution, A2 and A3, a side region larger according to bright-dark cut brightness is highlights, the less side region of brightness is the rule of dark portion, obtain the corresponding dark portion of bright-dark cut A1 and highlights combination a1, the corresponding dark portion of bright-dark cut A2 and highlights combine the corresponding dark portion of a2 and bright-dark cut A3 and highlights combination (hereinafter referred to as combination) a3, obtain the light ratio L1 of combination a1, the light ratio L2 of combination a2 and the light ratio L3 of combination a3, relatively light ratio L1, L2 and L3 is (if light ratio L1 is 1:2, light ratio L2 is 1:2.2, light ratio L3 is 1:1.9), obtain light ratio L2 maximum, then using the splitting scheme of bright-dark cut A2 as original photo dark portion and highlights, using combination a2 as the dark portion of original photo and highlights, using the actual light ratio of light ratio L2 as original photo.
In addition, in the present embodiment, the brightness of pixel can be represented by this pixel RGB (RGB) three primary colors yield value sum.
Step S30, the expection light ratio comparing actual light ratio and prestore, obtains this actual light than the difference with expection light ratio;
Such as, expection light ratio is 1:1, and actual light ratio is 1:4, because light ratio is the brightness of dark portion brightness ratio highlights, so could be equal with expection light ratio 1:1 by 3 the ratio units of the dark portion luminance raising in actual light ratio, namely actual light be 3 ratio units than the difference with expection light ratio; Light ratio is 1:8 as expected, and actual light, need could be equal with expection light ratio 1:8 than middle light luminance raising 4 ratio units by actual light than for 1:4, and namely actual light is 4 ratio units than the difference with expection light ratio.
Step S40, according to the flash intensity of photoflash lamp of difference adjustment mobile terminal, and controls mobile terminal and again takes current scene with the flash intensity after adjustment, obtain light filling photo;
Mobile terminal is provided with the photoflash lamp that flash intensity is adjustable, actual light is pre-stored in mobile terminal than the corresponding relation with the expection difference of light ratio and the flash intensity of mobile terminal photoflash lamp.Such as, expection light ratio is 1:8, actual light is than being 1:4, the dark portion brightness of original photo is 50, actual light is 4 ratio units than the difference with expection light ratio, namely needs the brightness of lifting 200, adjusts the photoflash lamp of mobile terminal to corresponding flash intensity according to actual light than with the difference of expection light ratio, and control mobile terminal and again take current scene with the flash intensity after adjustment, and obtain light filling photo.
Because the disposal ability of current mobile terminal is very powerful, shutter shooting current scene is pressed to obtain original photo from user, current scene is again taken according to the flash intensity after adjustment very short with the time spent by obtaining between light filling photo to mobile terminal, twice is not taken at user's mobile terminal, as broad as long on experiencing with normal single shot.
Step S50, carries out local light filling according to light filling photo to the dark portion of original photo or highlights, so that the actual light of original photo ratio is adjusted to expection light ratio.
According to the light and shade dividing line generating mode identical with original photo, determine dark portion and the highlights of light filling photo, and obtain the dark portion brightness of light filling photo and highlights brightness, according to the dark portion brightness of light filling photo and highlights brightness, local light filling is carried out to the dark portion of original photo or highlights, namely when the dark portion of original photo needs light filling, then according to the dark portion brightness of the dark portion brightness adjustment original photo of light filling photo; When the highlights of original photo needs light filling, then according to the highlights brightness of the highlights brightness adjustment original photo of light filling photo; Thus the actual light of original photo ratio is adjusted to expection light ratio, and then light ratio is adjusted to the original photo of expection light ratio as exporting photo storage in mobile terminal.
In the present embodiment, during by pressing shutter shooting current scene user, whether the actual light of automatic decision original photo is than equal with expection light ratio, if not etc., then whether adjust the flash intensity of photoflash lamp and again take to obtain light filling photo to current scene with the difference of expection light ratio according to border light ratio, finally according to light filling photo, local light filling is carried out to the dark portion of original photo or highlights, so that the actual light of original photo ratio is adjusted to expection light ratio, thus when there is no secondary light source and reflector, achieve the adjustment of light ratio that mobile terminal taken pictures, user only need press shutter as usual and take pictures, without the need to any troublesome operation, can realize easily taking pictures and automatic adjustment to light ratio of taking pictures, make to take pictures, particularly portrait photo, effect is better.
Further, on the basis of mobile terminal image pickup method first embodiment of the present invention, propose mobile terminal image pickup method second embodiment, with reference to Fig. 7, in a second embodiment, step S50 comprises:
Step S51, judges whether expection light ratio is less than actual light ratio;
Step S52, when expect light ratio be less than actual light than time, obtain the brightness of dark portion in light filling photo;
The brightness adjustment of dark portion in original photo is the brightness of dark portion in light filling photo by step S53, so that the actual light of original photo ratio is adjusted to expection light ratio.
After acquisition light filling photo, judge whether expection light ratio is less than actual light ratio, if when expect light ratio be less than actual light than time, such as expect that light ratio is 1:1, actual light is than being 1:4, need promote the brightness of dark portion in original photo and keep the brightness of highlights constant, so extract the brightness of dark portion in light filling photo, namely the RGB yield value of all pixels of dark portion in light filling photo is obtained, then be the brightness of dark portion in light filling photo by the brightness adjustment of dark portion in original photo, RGB yield value correspondence by all pixels of dark portion in original photo is adjusted to the RGB yield value of all pixels of dark portion in light filling photo, so that the actual light of original photo ratio is adjusted to expection light ratio, reach the expection light ratio of user.
In addition, on the basis of mobile terminal image pickup method second embodiment of the present invention, also comprise after step S41:
Step S54, when expect light ratio be more than or equal to actual light than time, obtain the brightness of light filling photo middle light;
Step S55, judges whether the brightness of light filling photo middle light is greater than the threshold brightness causing overexposure;
The brightness adjustment of original photo middle light if the brightness of light filling photo middle light is greater than threshold brightness, is then threshold brightness by step S56, and the brightness of dark portion in corresponding this original photo of adjustment, so that the actual light of original photo ratio is adjusted to expection light ratio;
The brightness adjustment of original photo middle light if the brightness of light filling photo middle light is less than or equal to threshold brightness, is then the brightness of light filling photo middle light, so that the actual light of original photo ratio is adjusted to expection light ratio by step S57.
When expect light ratio be greater than actual light than time, such as expect that light ratio is 1:8, actual light is than being 1:4, need promote the brightness of original photo middle light and keep the brightness of dark portion constant, so obtain the brightness of light filling photo middle light, namely obtain the RGB yield value of all pixels of light filling photo middle light.
But, carrying out promoting to the brightness of original photo highlights needs to avoid the brightness of the highlights after promoting to produce overexposure, so need to judge whether the brightness of light filling photo middle light is greater than the threshold brightness causing overexposure, if the brightness of light filling photo middle light is greater than threshold brightness, show that the brightness adjustment of original photo middle light is that the brightness of light filling photo middle light there will be overexposure, then the brightness adjustment of original photo middle light is threshold brightness, and the corresponding brightness adjusting dark portion in this original photo, so that the actual light of original photo ratio is adjusted to expection light ratio.Such as expect that light ratio is 1:6, actual light is than being 1:2, the brightness of original photo highlights is 200, the brightness of original photo dark portion is 100, and the brightness of light filling photo highlights is 600, and threshold brightness is 300, because the brightness of light filling photo highlights is greater than threshold brightness, so be 300 by the brightness adjustment of original photo highlights, be 50 by the brightness adjustment of original photo highlights, to make the ratio of the actual light after adjustment for 1:6.
If the brightness of light filling photo middle light is less than or equal to threshold brightness, be then the brightness of light filling photo middle light by the brightness adjustment of original photo middle light, so that the actual light of original photo ratio is adjusted to expection light ratio.Such as, expection light ratio is 1:3, actual light is than being 1:2, the brightness of original photo highlights is 200, and the brightness of original photo dark portion is 100, and the brightness of light filling photo highlights is 300, threshold brightness is 350, because the brightness of light filling photo highlights is less than threshold brightness, so be 300 by the brightness adjustment of original photo highlights, keep the brightness of original photo dark portion constant.
In the present embodiment, there is provided a kind of, according to the adjustment of light filling photo, local light filling is carried out so that the actual light of original photo is expected the mode of light ratio than being adjusted to the dark portion of original photo or highlights, divide three kinds of situation differentiated treatment, ensureing, under the prerequisite that original photo unduly exposes, to realize the adjustment to original photo light ratio.
Further, on the basis of mobile terminal image pickup method first embodiment of the present invention, propose mobile terminal image pickup method the 3rd embodiment, with reference to Fig. 8, in the third embodiment, step S20 comprises:
Step S21, determines dark portion and highlights in original photo;
Alternatively, step S21 comprises:
Step S211, according to the light and shade distribution situation of original photo, generates the bright-dark cut for subsequent use of preset number;
Step S212, according to bright-dark cut for subsequent use, obtains dark portion and the highlights combination of preset number;
Step S213, selects the maximum dark portion of light ratio and highlights combination as the dark portion of this original photo and highlights from obtaining the dark portion of preset number and highlights combination.
Step S22, obtains the brightness of dark portion and the brightness of highlights in original photo, and according to the brightness of this dark portion and the brightness of highlights, obtains the actual light ratio of this original photo.
Judged by peak edge, identify dark portion in original photo, highlights and bright-dark cut; Detailed process is: according to the light and shade distribution situation of original photo, generate the bright-dark cut for subsequent use of preset number, generating mode first can obtain the brightness of all pixels in original photo, select the region that vicinity points brightness changing value is greater than setting threshold, and joint area one line these selected is to form preset number bright-dark cut for subsequent use; Then a preset number dark portion and highlights combination is obtained according to different bright-dark cut for subsequent use; Obtain dark portion all pixels average brightness (i.e. dark portion brightness) and all pixel average brightness of highlights (i.e. highlights brightness) in each dark portion and highlights combination again, and the light ratio of each dark portion and highlights combination is obtained further according to this dark portion brightness and highlights brightness, maximum for light ratio dark portion and highlights are combined as the dark portion of original photo and the splitting scheme of highlights, combines the bright-dark cut of corresponding bright-dark cut for subsequent use as original photo by the maximum dark portion of light ratio and highlights.
In order to understand the deterministic process of dark portion and highlights in original photo better, below with object lesson aid illustration: such as, according in original photo between pixel brightness changing value be greater than the area distribution of setting threshold, 3 bright-dark cut A1 for subsequent use are formed according to this area distribution, A2 and A3, a side region larger according to bright-dark cut brightness is highlights, the less side region of brightness is the rule of dark portion, obtain the corresponding dark portion of bright-dark cut A1 and highlights combination a1, the corresponding dark portion of bright-dark cut A2 and highlights combine the corresponding dark portion of a2 and bright-dark cut A3 and highlights combination (hereinafter referred to as combination) a3, obtain the light ratio L1 of combination a1, the light ratio L2 of combination a2 and the light ratio L3 of combination a3, relatively light ratio L1, L2 and L3 is (if light ratio L1 is 1:2, light ratio L2 is 1:2.2, light ratio L3 is 1:1.9), obtain light ratio L2 maximum, then using the splitting scheme of bright-dark cut A2 as original photo dark portion and highlights, using combination a2 as the dark portion of original photo and highlights, using the actual light ratio of light ratio L2 as original photo.
In the present embodiment, there is provided a kind of determine original photo dark portion and highlights, acquisition original photo the execution mode of actual light ratio, thus mobile terminal can the actual light ratio of quick obtaining original photo, the flash intensity of photoflash lamp during to determine that mobile terminal is taken fast next time, obtain light filling photo more quickly, thus the local light filling making to carry out dark portion or highlights according to light filling photo to original photo is more efficient.
It should be noted that, in this article, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or device and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or device.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the device comprising this key element and also there is other identical element.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that above-described embodiment method can add required general hardware platform by software and realize, hardware can certainly be passed through, but in a lot of situation, the former is better execution mode.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium (as ROM/RAM, magnetic disc, CD), comprising some instructions in order to make a station terminal equipment (can be mobile phone, computer, server, air conditioner, or the network equipment etc.) perform method described in each embodiment of the present invention.
These are only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize specification of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (10)

1. a mobile terminal filming apparatus, is characterized in that, described mobile terminal filming apparatus comprises:
First taking module, for when photographing instruction being detected, controlling mobile terminal shooting current scene, obtaining original photo;
Light ratio acquisition module, for determining dark portion in described original photo and highlights, and obtains the actual light ratio of this original photo;
Light ratio comparison module, for more described actual light ratio and the expection light ratio that prestores, obtains this actual light than the difference with expection light ratio;
Light intensity adjusting module, for the flash intensity of the photoflash lamp according to described difference adjustment mobile terminal, and controls mobile terminal and again takes current scene with the flash intensity after adjustment, obtain light filling photo;
Supplementary lighting module, for carrying out local light filling according to described light filling photo to the dark portion of original photo or highlights, to be adjusted to expection light ratio by the actual light of described original photo ratio.
2. mobile terminal filming apparatus as claimed in claim 1, it is characterized in that, described supplementary lighting module comprises:
First judging unit, for judging whether described expection light ratio is less than actual light ratio;
First acquiring unit, for be less than when described expection light ratio actual light than time, obtain the brightness of dark portion in described light filling photo;
First adjustment unit, for being the brightness of dark portion in described light filling photo by the brightness adjustment of dark portion in described original photo, to be adjusted to expection light ratio by the actual light of described original photo ratio.
3. mobile terminal filming apparatus as claimed in claim 2, it is characterized in that, described supplementary lighting module also comprises:
Second acquisition unit, for be more than or equal to when described expection light ratio actual light than time, obtain the brightness of described light filling photo middle light;
Second judging unit, for judging whether the brightness of described light filling photo middle light is greater than the threshold brightness causing overexposure;
Second adjustment unit, if be greater than threshold brightness for the brightness of described light filling photo middle light, be then described threshold brightness by the brightness adjustment of described original photo middle light, and the brightness of dark portion in corresponding this original photo of adjustment, so that the actual light of described original photo ratio is adjusted to expection light ratio;
3rd adjustment unit, if be less than or equal to threshold brightness for the brightness of described light filling photo middle light, be then the brightness of described light filling photo middle light by the brightness adjustment of described original photo middle light, so that the actual light of described original photo ratio is adjusted to expection light ratio.
4. the mobile terminal filming apparatus as described in claims 1 to 3 any one, is characterized in that, described light ratio acquisition module comprises:
Determining unit, for determining dark portion and highlights in described original photo;
Light ratio acquiring unit, for obtaining the brightness of dark portion and the brightness of highlights in described original photo, and according to the brightness of this dark portion and the brightness of highlights, obtains the actual light ratio of this original photo.
5. mobile terminal filming apparatus as claimed in claim 4, is characterized in that,
Described determining unit also for:
According to the light and shade distribution situation of described original photo, generate the bright-dark cut for subsequent use of preset number;
According to described bright-dark cut for subsequent use, obtain dark portion and the highlights combination of preset number;
The maximum dark portion of light ratio and highlights combination is selected as the dark portion of this original photo and highlights from the dark portion of described acquisition preset number and highlights combination.
6. a mobile terminal image pickup method, is characterized in that, described mobile terminal image pickup method comprises:
When photographing instruction being detected, controlling mobile terminal shooting current scene, obtaining original photo;
Determine the dark portion in described original photo and highlights, and obtain the actual light ratio of this original photo;
More described actual light ratio and the expection light ratio prestored, obtain this actual light than the difference with expection light ratio;
According to the flash intensity of the photoflash lamp of described difference adjustment mobile terminal, and control mobile terminal and again take current scene with the flash intensity after adjustment, obtain light filling photo;
According to described light filling photo, local light filling is carried out to the dark portion of original photo or highlights, so that the actual light of described original photo ratio is adjusted to expection light ratio.
7. mobile terminal image pickup method as claimed in claim 6, is characterized in that, describedly carries out local light filling according to described light filling photo to the dark portion of original photo or highlights, than being adjusted to, the actual light of described original photo is expected that the step of light ratio comprises:
Judge whether described expection light ratio is less than actual light ratio;
When described expection light ratio be less than actual light than time, obtain the brightness of dark portion in described light filling photo;
Be the brightness of dark portion in described light filling photo by the brightness adjustment of dark portion in described original photo, so that the actual light of described original photo ratio is adjusted to expection light ratio.
8. mobile terminal image pickup method as claimed in claim 7, is characterized in that, describedly judges described expection light ratio also comprises after whether being less than the step of actual light ratio:
When described expection light ratio be more than or equal to actual light than time, obtain the brightness of described light filling photo middle light;
Judge whether the brightness of described light filling photo middle light is greater than the threshold brightness causing overexposure;
If the brightness of described light filling photo middle light is greater than threshold brightness, be then described threshold brightness by the brightness adjustment of described original photo middle light, and the corresponding brightness adjusting dark portion in this original photo, so that the actual light of described original photo ratio is adjusted to expection light ratio;
If the brightness of described light filling photo middle light is less than or equal to threshold brightness, be then the brightness of described light filling photo middle light by the brightness adjustment of described original photo middle light, so that the actual light of described original photo ratio is adjusted to expection light ratio.
9. the mobile terminal image pickup method as described in claim 6 to 8 any one, is characterized in that, describedly determines dark portion and highlights in described original photo, and the step obtaining the actual light ratio of this original photo comprises:
Determine dark portion and highlights in described original photo;
Obtain the brightness of dark portion and the brightness of highlights in described original photo, and according to the brightness of this dark portion and the brightness of highlights, obtain the actual light ratio of this original photo.
10. mobile terminal image pickup method as claimed in claim 9, is characterized in that, describedly determines that the step of dark portion and highlights in described original photo comprises:
According to the light and shade distribution situation of described original photo, generate the bright-dark cut for subsequent use of preset number;
According to described bright-dark cut for subsequent use, obtain dark portion and the highlights combination of preset number;
The maximum dark portion of light ratio and highlights combination is selected as the dark portion of this original photo and highlights from the dark portion of described acquisition preset number and highlights combination.
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 true CN105407295A (en) 2016-03-16
CN105407295B 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)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105959566A (en) * 2016-06-21 2016-09-21 北京奇虎科技有限公司 Image pickup mode switching method and device, and automobile data recorder
WO2017071558A1 (en) * 2015-10-30 2017-05-04 努比亚技术有限公司 Mobile terminal photographing device and method
CN108040209A (en) * 2017-12-20 2018-05-15 维沃移动通信有限公司 A kind of image pickup method and mobile terminal
CN115104062A (en) * 2020-03-12 2022-09-23 Jvc建伍株式会社 Image processing device, image processing method, and image processing program

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107087079B (en) * 2017-06-29 2023-05-26 深圳市泰衡诺科技有限公司上海分公司 Brightness adjusting system and method in hands-free call mode
CN110738724B (en) * 2019-09-06 2024-05-31 惠州市德赛西威汽车电子股份有限公司 Method and system for automatically adjusting illumination effect of automobile model
CN111770264B (en) * 2020-06-04 2022-04-08 深圳明心科技有限公司 Method and device for improving imaging effect of camera module and camera module

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140176789A1 (en) * 2012-12-21 2014-06-26 Canon Kabushiki Kaisha Image capturing apparatus and control method thereof
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 (6)

* 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
CN105407295B (en) * 2015-10-30 2019-02-22 努比亚技术有限公司 Mobile terminal filming apparatus and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140176789A1 (en) * 2012-12-21 2014-06-26 Canon Kabushiki Kaisha Image capturing apparatus and control method thereof
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

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017071558A1 (en) * 2015-10-30 2017-05-04 努比亚技术有限公司 Mobile terminal photographing device and method
CN105959566A (en) * 2016-06-21 2016-09-21 北京奇虎科技有限公司 Image pickup mode switching method and device, and automobile data recorder
CN108040209A (en) * 2017-12-20 2018-05-15 维沃移动通信有限公司 A kind of image pickup method and mobile terminal
CN108040209B (en) * 2017-12-20 2019-12-13 维沃移动通信有限公司 Shooting method and mobile terminal
CN115104062A (en) * 2020-03-12 2022-09-23 Jvc建伍株式会社 Image processing device, image processing method, and image processing program

Also Published As

Publication number Publication date
CN105407295B (en) 2019-02-22
WO2017071558A1 (en) 2017-05-04

Similar Documents

Publication Publication Date Title
JP6803982B2 (en) Optical imaging method and equipment
CN105407295A (en) Mobile terminal photographing device and method
CN105516423A (en) Mobile terminal, data transmission system and mobile terminal shoot method
CN104767941A (en) Photography method and device
CN104660903A (en) Shooting method and shooting device
CN105262951A (en) Mobile terminal having binocular camera and photographing method
WO2017071559A1 (en) Image processing apparatus and method
CN104683697A (en) Shooting parameter adjusting method and device
CN105959543B (en) It is a kind of to remove reflective filming apparatus and method
US11477383B2 (en) Method for providing preview and electronic device for displaying preview
CN105578056A (en) Photographing terminal and method
CN104811554A (en) Method and terminal for switching camera modes
CN104639837A (en) Method and device for setting shooting parameters
CN112840642B (en) Image shooting method and terminal equipment
CN105242844A (en) Terminal and camera parameter setting method
CN104902185A (en) Shooting method and shooting device
CN105163035A (en) Mobile terminal shooting system and mobile terminal shooting method
CN105704369A (en) Information-processing method and device, and electronic device
CN104796625A (en) Picture synthesizing method and device
CN105120164A (en) Device and method for processing continuously-shot pictures
CN105335458A (en) Picture previewing method and apparatus
CN104751488A (en) Photographing method for moving track of moving object and terminal equipment
CN105357444A (en) Focusing method and device
CN104811624A (en) Infrared shooting method and infrared shooting device
WO2017185778A1 (en) Mobile terminal, exposure method therefor, and computer storage medium

Legal Events

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