CN107734225B - A kind of image pickup method and device - Google Patents
A kind of image pickup method and device Download PDFInfo
- Publication number
- CN107734225B CN107734225B CN201711002518.9A CN201711002518A CN107734225B CN 107734225 B CN107734225 B CN 107734225B CN 201711002518 A CN201711002518 A CN 201711002518A CN 107734225 B CN107734225 B CN 107734225B
- Authority
- CN
- China
- Prior art keywords
- brightness value
- preview image
- exposure
- infrared lamp
- mobile terminal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/50—Constructional details
- H04N23/55—Optical parts specially adapted for electronic image sensors; Mounting thereof
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/02—Constructional features of telephone sets
- H04M1/0202—Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
- H04M1/026—Details of the structure or mounting of specific components
- H04M1/0264—Details of the structure or mounting of specific components for a camera module assembly
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/56—Cameras or camera modules comprising electronic image sensors; Control thereof provided with illuminating means
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/71—Circuitry for evaluating the brightness variation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/74—Circuitry for compensating brightness variation in the scene by influencing the scene brightness using illuminating means
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/741—Circuitry for compensating brightness variation in the scene by increasing the dynamic range of the image compared to the dynamic range of the electronic image sensors
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Studio Devices (AREA)
Abstract
The embodiment of the invention provides a kind of image pickup method and devices, are applied to mobile terminal, and the mobile terminal includes infrared lamp and camera, and method therein includes: to open the infrared lamp, acquire preview image by the camera;It determines the photometry region of the preview image, and exposure brightness value is calculated according to the photometry region;According to the exposure brightness value and preset target brightness value, the luminous intensity of the infrared lamp is adjusted, and image is shot by the camera.Through the embodiment of the present invention, the shooting effect of mobile terminal under low light conditions can be improved.
Description
Technical field
The present invention relates to field of computer technology more particularly to a kind of image pickup methods and device.
Background technique
With the continuous development of mobile terminal technology, mobile terminal shooting photo is can be used in user, and user is to shifting
The requirement of dynamic terminal shooting function is also higher and higher.
However, shooting effect of the mobile terminal under low light conditions is still unsatisfactory, take the photo come usually compared with
Dark or noise is larger, and image can not be even taken under completely black environment.Wherein, low light conditions refer to intensity of illumination compared with
Under low environment, such as night-environment.
Currently, LED (Light Emitting Diode, light emitting diode) flash lamp, which can be used, carries out light compensation,
To improve shooting effect of the mobile terminal under low light conditions, however, some photographed scenes are not appropriate for using flash lamp, than
The baby that shooting wild animal perhaps sleep soundly as in the night can cause to alarm using flash lamp to wild animal or baby, lead
Cause shooting effect poor.
Summary of the invention
The embodiment of the present invention provides a kind of image pickup method and device, with solve in the prior art mobile terminal in low-light (level) item
The problem for being not suitable for causing shooting effect poor using flash lamp under part.
In a first aspect, the method is applied to mobile terminal, the shifting the embodiment of the invention provides a kind of image pickup method
Dynamic terminal includes infrared lamp and camera, which comprises
The infrared lamp is opened, preview image is acquired by the camera;
It determines the photometry region of the preview image, and exposure brightness value is calculated according to the photometry region;
According to the exposure brightness value and preset target brightness value, the luminous intensity of the infrared lamp is adjusted, and is passed through
The camera shoots image.
Optionally, the photometry region of the determination preview image, comprising:
Face datection is carried out to the preview image;
If in the preview image including human face region, it is determined that the human face region is photometry region;Otherwise, it determines institute
The central area for stating preview image is photometry region.
It is optionally, described that exposure brightness value is calculated according to the photometry region, comprising:
According to the corresponding light metering weight of pixel in the photometry region, the exposure brightness value of the preview image is determined.
Optionally, described according to the corresponding light metering weight of pixel in the photometry region, determine the preview image
Expose brightness value, comprising:
Determine the brightness value of pixel in the photometry region;
According to the light metering weight of the pixel, meter is weighted and averaged to the brightness value of pixel in the photometry region
It calculates, to obtain the exposure brightness value of the preview image.
Optionally, described according to the exposure brightness value and preset target brightness value, adjust shining for the infrared lamp
Intensity, comprising:
If the exposure brightness value is lower than the target brightness value, enhance the intensity of light of the infrared lamp, to increase
The exposure brightness value of the preview image;Or
If the exposure brightness value is higher than the target brightness value, weaken the intensity of light of the infrared lamp, to reduce
The exposure brightness value of the preview image.
Optionally, the method also includes:
Obtain the ambient brightness value of mobile terminal;
If the ambient brightness value is lower than preset threshold, the infrared lamp of the mobile terminal is opened.
Second aspect, the embodiment of the invention provides a kind of filming apparatus, described device is applied to mobile terminal, the shifting
Dynamic terminal includes infrared lamp and camera, and described device includes:
Image collection module acquires preview image by the camera for opening the infrared lamp;
Brightness determining module for determining the photometry region of the preview image, and is calculated according to the photometry region and is exposed
Brightness values;
Luminance adjustment module, for adjusting the infrared lamp according to the exposure brightness value and preset target brightness value
Luminous intensity, and by the camera shoot image.
Optionally, the brightness determining module, comprising:
Detection sub-module, for carrying out Face datection to the preview image;
Region determines submodule, if for including human face region in the preview image, it is determined that the human face region is
Photometry region;Otherwise, it determines the central area of the preview image is photometry region.
Optionally, the brightness determining module, comprising:
Brightness determines submodule, for determining described pre- according to the corresponding light metering weight of pixel in the photometry region
Look at the exposure brightness value of image.
Optionally, the brightness determines submodule, comprising:
Brightness value determination unit, for determining the brightness value of pixel in the photometry region;
Luminance value computing unit, for the light metering weight according to the pixel, to pixel in the photometry region
Brightness value is weighted and averaged calculating, to obtain the exposure brightness value of the preview image.
Optionally, the luminance adjustment module, comprising:
First adjusts submodule, if being lower than the target brightness value for the exposure brightness value, enhances described infrared
The intensity of light of lamp, to increase the exposure brightness value of the preview image;Or
Second adjusts submodule, if being higher than the target brightness value for the exposure brightness value, weakens described infrared
The intensity of light of lamp, to reduce the exposure brightness value of the preview image.
Optionally, described device further include:
Ambient brightness acquisition module, for obtaining the ambient brightness value of mobile terminal;
Infrared lamp opening module opens the mobile terminal if being lower than preset threshold for the ambient brightness value
Infrared lamp.
The third aspect, the embodiment of the invention provides a kind of mobile terminals, comprising: memory, processor and is stored in
On reservoir and the computer program that can run on a processor, which is characterized in that the processor is realized when executing described program
The step of described image pickup method.
Fourth aspect, the embodiment of the invention provides a kind of computer readable storage mediums, are stored thereon with computer journey
Sequence, when described program is executed by processor the step of image pickup method described in realization.
The embodiment of the present invention is provided with infrared lamp in mobile terminal, when being shot under low light conditions using mobile terminal,
Infrared lamp can be opened, preview image is acquired by the camera of mobile terminal, and the preview is determined according to photometry region
The exposure brightness value of image can be by described infrared if the exposure brightness value does not meet preset target brightness value
The exposure brightness value of the preview image is adjusted in lamp, so that the exposure brightness value meets preset target brightness value.
For example, the light of infrared lamp can be enhanced if the exposure brightness value of the preview image is less than preset target brightness value
Intensity carries out light filling, to increase the exposure brightness value of the preview image, improves the shooting effect of mobile terminal under low light conditions
Fruit.Further, since infrared lamp sending is black light, therefore, carrying out light filling using infrared lamp has hidden, energy-efficient spy
Point will not cause to alarm to subject, will not damage to the eyes of subject.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention
Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention
Example, for those of ordinary skill in the art, without any creative labor, can also be according to these attached drawings
Obtain other attached drawings.
Fig. 1 shows a kind of flow chart of image pickup method embodiment one of the invention;
Fig. 2 shows the schematic diagrames of the light metering weight of pixel in a kind of photometry region of the invention;
Fig. 3 shows a kind of flow chart of image pickup method embodiment two of the invention;
Fig. 4 shows a kind of structural block diagram of filming apparatus embodiment of the invention;
Fig. 5 shows a kind of structural schematic diagram of mobile terminal 1500 of the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
Embodiment of the method one
Referring to Fig.1, a kind of flow chart of image pickup method embodiment one of the invention is shown, the method is applied to movement
Terminal, the mobile terminal include infrared lamp and camera, and the method can specifically include following steps:
Step 101 opens the infrared lamp, acquires preview image by the camera;
The embodiment of the present invention is applicable to the mobile terminal with infrared lamp and camera.The mobile terminal may include
Mobile phone, tablet computer, laptop, intelligent wearable equipment, personal digital assistant etc., the embodiment of the present invention is for mobile whole
The concrete form at end is without restriction.It is illustrated for ease of description, the embodiment of the present invention takes the mobile phone as an example, other application field
Scape is cross-referenced.Shooting in the embodiment of the present invention can specifically include shooting photo or shooting video, below with
It is illustrated for shooting photo.
In order to improve shooting effect of the mobile terminal under low light conditions, and subject will not be caused to shy
It disturbs, the embodiment of the present invention is provided with infrared lamp in the terminal, to carry out light filling in the shooting process under low light conditions.
Due to infrared lamp issue be wavelength be 850nm or 940nm black light, using infrared lamp carry out light filling have
Hidden, energy saving feature will not cause to alarm to subject, will not damage to the eyes of subject.
In practical applications, when mobile terminal opens camera function, the camera of mobile terminal can constantly acquire outer
Portion's scene to obtain the corresponding preview image of current external scene, and shows the preview image in preview interface of taking pictures.
When the embodiment of the present invention shoots photo using mobile terminal under low light conditions, infrared lamp can be opened, and obtain movement
The preview image that the camera of terminal acquires under infrared lamp.
Step 102, the photometry region for determining the preview image, and exposure brightness value is calculated according to the photometry region;
After the preview image that the camera for obtaining mobile terminal acquires under infrared lamp, the preview graph can be determined
The exposure brightness value of picture, if the exposure brightness value is less than preset target brightness value, the light of adjustable infrared lamp
Intensity carries out light filling.
In order to enable the main body in shooting picture is clear and legible, shooting effect with higher, the embodiment of the present invention is to pre-
The photometry region look in image carries out survey light, with the exposure brightness value of the determination preview image.It is optional in one kind of the invention
In embodiment, the photometry region of the determination preview image be can specifically include:
Face datection is carried out to the preview image;
If in the preview image including human face region, it is determined that the human face region is photometry region;Otherwise, it determines institute
The central area for stating preview image is photometry region.
When the embodiment of the present invention includes face in detecting preview image, can using human face region as photometry region,
In this way, exposure enhancing can be realized to face, using face as emphasis when including personage in reference object to guarantee face
Region has preferable survey light effect, improves the shooting effect of human face region, to meet the needs of user shoots personage.If pre-
It lookes in image that there is no human face regions, then central area can be regard as photometry region, to guarantee that picture main body has preferably
Shooting effect.
Certainly, in a particular application, photometry region can also be determined using other way, for example, user can also clap
According to selection target region is clicked in preview interface manually as photometry region etc., it will be understood that the embodiment of the present invention is for determination
The concrete mode of photometry region is without restriction.
In an alternative embodiment of the invention, described that exposure brightness value is calculated according to the photometry region, specifically may be used
To include: to determine the exposure brightness value of the preview image according to the corresponding light metering weight of pixel in the photometry region.
Optionally, described according to the corresponding light metering weight of pixel in the photometry region, determine the preview image
Brightness value is exposed, can specifically include:
Determine the brightness value of pixel in the photometry region;
According to the light metering weight of the pixel, meter is weighted and averaged to the brightness value of pixel in the photometry region
It calculates, to obtain the exposure brightness value of the preview image.
It, can be by analyzing the picture in a large amount of photos in a kind of application example of the invention, setting default
Central area in shooting process, can be by the central area of the default if in preview image not including human face region
As photometry region.The embodiment of the present invention sets 1 for the light metering weight of pixel in the central area of the default, by the default
Central area outside the light metering weight of pixel be set as 0.Referring to Fig. 2, picture in a kind of photometry region of the invention is shown
The schematic diagram of the light metering weight of vegetarian refreshments, in a particular application, the brightness value for the pixel that available light metering weight is 1, to this
A little brightness values calculate average value, using the average value as the exposure brightness value of preview image.The embodiment of the present invention uses center
Light is surveyed in domain, be can effectively solve reference object under infrared lamp and is easy over-exposed problem, while can guarantee main body object in picture
The exposure effect of body is best.
In embodiments of the present invention, if detecting to include human face region in preview screen, using human face region as survey
Light region, while the light metering weight of pixel shown in Fig. 2 can be updated, the pixel being wherein located in human face region
The light metering weight of point is updated to 1, and the light metering weight for the pixel being located at outside human face region is updated to 0.As a result, in reference object
In when including personage, the embodiment of the present invention can make human face region have it is preferable survey light effect so that human face region
Exposure effect it is best.
It should be noted that the above-mentioned light metering weight by the pixel in photometry region is set as 1, it will be outside photometry region
The light metering weight of pixel is set as 0, only a kind of applies example, in practical applications, those skilled in the art as of the invention
Member can according to need flexible setting light metering weight.For example, the pixel that can be set outside photometry region has lower survey light
Weight, the pixel light metering weight with higher in photometry region, and the point of the different pixels in photometry region can be set
With different light metering weights, the brightness value of each pixel can be weighted when calculating and exposing brightness value average
Value, so that the biggish region of light metering weight has preferable exposure effect.For example, the exposure can be calculated by following formula
Brightness value.
(a1×p1+a2×p2+…+an×pn)/n (1)
Wherein, n indicates the number of pixel, anIndicate the brightness value of nth pixel point, pnIndicate the survey of nth pixel point
Light weight.
Step 103, according to the exposure brightness value and preset target brightness value, adjust the strong light of the infrared lamp
Degree, and image is shot by the camera.
It is in an alternative embodiment of the invention, described according to the exposure brightness value and preset target brightness value,
The luminous intensity for adjusting the infrared lamp, can specifically include:
If the exposure brightness value is lower than the target brightness value, enhance the intensity of light of the infrared lamp, to increase
The exposure brightness value of the preview image;Or
If the exposure brightness value is higher than the target brightness value, weaken the intensity of light of the infrared lamp, to reduce
The exposure brightness value of the preview image.
To sum up, the embodiment of the present invention is provided with infrared lamp in mobile terminal, is clapped under low light conditions using mobile terminal
When taking the photograph, infrared lamp can be opened, preview image is acquired by the camera of mobile terminal, and according to photometry region determination
The exposure brightness value of preview image can be by described if the exposure brightness value does not meet preset target brightness value
The exposure brightness value of the preview image is adjusted in infrared lamp, so that the exposure brightness value meets preset object brightness
Value.For example, the lamp of infrared lamp can be enhanced if the exposure brightness value of the preview image is less than preset target brightness value
Luminous intensity carries out light filling, to increase the exposure brightness value of the preview image, improves the shooting of mobile terminal under low light conditions
Effect.Further, since infrared lamp sending is black light, therefore, carrying out light filling using infrared lamp has hidden, energy-efficient spy
Point will not cause to alarm to subject, will not damage to the eyes of subject.
Embodiment of the method two
In embodiments of the present invention, mobile terminal can be set with common photographing mode and low-light (level) photographing mode, use
Family can manually select current photographing mode after opening the camera applications in mobile terminal, if user's selection is common
Photographing mode when then detecting that current environment brightness value is lower during taking pictures, can open LED flash and carry out light filling;
If user selects low-light (level) photographing mode, when detecting that current environment brightness value is lower during taking pictures, can open
Infrared lamp carries out light filling, to realize quiet hidden photographing mode.
When user selects low-light (level) photographing mode, mobile terminal can open infrared lamp and carry out light filling, in order to simplify use
The operation at family, the embodiment of the present invention can also detect the current ambient brightness value of mobile terminal, if the ambient brightness value is less than
Preset target brightness value then can automatically turn on movement eventually automatically into low-light (level) photographing mode, and during taking pictures
The infrared lamp at end carries out light filling.
Referring to Fig. 3, a kind of flow chart of image pickup method embodiment two of the invention is shown, the method is applied to movement
Terminal, the mobile terminal include infrared lamp and camera, and the method can specifically include following steps:
Step 301, the ambient brightness value for obtaining mobile terminal;
In a particular application, the available AEC of light sensation processor (the Automatic Exposure in mobile terminal
Control, auto-exposure control), AGC (Automatic Gain Control, automatic growth control) and AWB
(Automatic white balance, automatic white balance) parameter, environment bright angle value can be taken by being obtained by these parameters.
If step 302, the ambient brightness value are lower than preset threshold, the infrared lamp of the mobile terminal is opened;
If the ambient brightness value is lower than preset threshold, illustrate that current shooting condition is low light conditions, then it can be certainly
It is dynamic to enter low-light (level) photographing mode, and the infrared lamp for automatically turning on mobile terminal carries out light filling.It is appreciated that the present invention is implemented
Example is without restriction for the specific value of the preset threshold.
Step 303 acquires preview image by the camera;
Step 304, the photometry region for determining the preview image, and exposure brightness value is calculated according to the photometry region;
In an alternative embodiment of the invention, the method can also include:
According to the exposure brightness value, exposure parameter is determined;The exposure parameter includes: the time for exposure, aperture size with
And ISO photosensitive value.
It in practical applications, can be according to this after carrying out survey light to photometry region and obtaining corresponding exposure brightness value
Brightness value is exposed, suitable exposure parameter is determined, such as determines time for exposure, aperture size and ISO photosensitive value.In general, exposing
After optical parameter determines, mobile terminal can be adjusted according to the exposure parameter, to shoot the preferable photo of effect.It can
To understand, exposure parameter can also include other parameters, and the embodiment of the present invention does not limit the particular content of exposure parameter
System.In addition, the specific corresponding relationship of exposure brightness value and matched exposure parameter can be rule of thumb preset, this hair
It is bright without restriction to this.
Step 305, according to the exposure brightness value and preset target brightness value, adjust the strong light of the infrared lamp
Degree, and image is shot by the camera.
When receiving shooting instruction from the user, when pressing shutter such as user or click shoot button, according to tune
The intensity of light of infrared lamp after whole and exposure parameter adjusted, shooting obtain the corresponding photo of preview image.
To sum up, the embodiment of the present invention can be determined when the ambient brightness value for detecting mobile terminal is lower than preset threshold
Current shooting condition is low light conditions, then can automatically turn on infrared lamp and carry out light filling, to simplify the operation of user.This hair
Bright embodiment, which carries out light filling with infrared lamp, to be had the characteristics that hidden, energy saving, will not cause to alarm to subject, will not be right
The eyes of subject damage.
It, can be in addition, the embodiment of the present invention is carrying out photometry region surveying after light obtains corresponding exposure brightness value
According to the exposure brightness value, determines suitable exposure parameter, such as determine time for exposure, aperture size and ISO photosensitive value, in turn
Mobile terminal can be adjusted according to exposure parameter adjusted, to shoot the preferable photo of effect.
Installation practice
Referring to Fig. 4, a kind of structural block diagram of filming apparatus embodiment of the invention is shown, described device is applied to movement
Terminal, the mobile terminal include infrared lamp and camera, and described device can specifically include:
Image collection module 401 acquires preview image by the camera for opening the infrared lamp;
Brightness determining module 402 is calculated for determining the photometry region of the preview image, and according to the photometry region
Expose brightness value;
Luminance adjustment module 403, for adjusting described infrared according to the exposure brightness value and preset target brightness value
The luminous intensity of lamp, and image is shot by the camera.
Optionally, the brightness determining module 402, can specifically include:
Detection sub-module, for carrying out Face datection to the preview image;
Region determines submodule, if for including human face region in the preview image, it is determined that the human face region is
Photometry region;Otherwise, it determines the central area of the preview image is photometry region.
Optionally, the brightness determining module 402, can specifically include:
Brightness determines submodule, for determining described pre- according to the corresponding light metering weight of pixel in the photometry region
Look at the exposure brightness value of image.
Optionally, the brightness determines submodule, can specifically include:
Brightness value determination unit, for determining the brightness value of pixel in the photometry region;
Luminance value computing unit, for the light metering weight according to the pixel, to pixel in the photometry region
Brightness value is weighted and averaged calculating, to obtain the exposure brightness value of the preview image.
Optionally, the luminance adjustment module 403, can specifically include:
First adjusts submodule, if being lower than the target brightness value for the exposure brightness value, enhances described infrared
The intensity of light of lamp, to increase the exposure brightness value of the preview image;Or
Second adjusts submodule, if being higher than the target brightness value for the exposure brightness value, weakens described infrared
The intensity of light of lamp, to reduce the exposure brightness value of the preview image.
Optionally, described device can also include:
Ambient brightness acquisition module, for obtaining the ambient brightness value of mobile terminal;
Infrared lamp opening module opens the mobile terminal if being lower than preset threshold for the ambient brightness value
Infrared lamp.
Referring to Fig. 5, a kind of structural schematic diagram of mobile terminal 1500 of the present invention is shown, can specifically include: at least one
A processor 1501, memory 1502, at least one network interface 1504, user interface 1503, screen 1506, camera 1507
With infrared lamp 1508.Various components in mobile terminal 1500 are coupled by bus system 1505.It is understood that total linear system
System 1505 is for realizing the connection communication between these components.Bus system 1505 further includes electricity in addition to including data/address bus
Source bus, control bus and status signal bus in addition.But for the sake of clear explanation, various buses are all designated as always in Fig. 5
Linear system system 1505.
Wherein, user interface 1503 may include display, keyboard or pointing device (for example, mouse, trace ball
(trackball), touch-sensitive plate or touch screen etc..
It is appreciated that the memory 1502 in the embodiment of the present invention can be volatile memory or non-volatile memories
Device, or may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory
(Read-Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), erasable programmable are only
Read memory (Erasable PROM, EPROM), electrically erasable programmable read-only memory (Electrically EPROM,
) or flash memory EEPROM.Volatile memory can be random access memory (Random Access Memory, RAM), use
Make External Cache.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random-access
Memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random-access
Memory (Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data
Rate SDRAM, DDRSDRAM), it is enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronous
Connect dynamic random access memory (Synch Link DRAM, SLDRAM) and direct rambus random access memory
(Direct Rambus RAM, DRRAM).The embodiment of the present invention description system and method memory 1502 be intended to include but
It is not limited to the memory of these and any other suitable type.
In some embodiments, memory 1502 stores following element, executable modules or data structures, or
Their subset of person or their superset: operating system 15021 and application program 15022.
Wherein, operating system 15021 include various system programs, such as ccf layer, core library layer, driving layer etc., are used for
Realize various basic businesses and the hardware based task of processing.Application program 15022 includes various application programs, such as matchmaker
Body player (Media Player), browser (Browser) etc., for realizing various applied business.Realize that the present invention is implemented
The program of example method may be embodied in application program 15022.
In embodiments of the present invention, by the program or instruction of calling memory 1502 to store, specifically, can be application
The program or instruction stored in program 15022, processor 1501 are acquired pre- for opening the infrared lamp by the camera
Look at image;It determines the photometry region of the preview image, and exposure brightness value is calculated according to the photometry region;According to the exposure
Brightness values and preset target brightness value adjust the luminous intensity of the infrared lamp, and shoot image by the camera.
The method that the embodiments of the present invention disclose can be applied in processor 1501, or real by processor 1501
It is existing.Processor 1501 may be a kind of IC chip, the processing capacity with signal.During realization, the above method
Each step can be completed by the instruction of the integrated logic circuit of the hardware in processor 1501 or software form.Above-mentioned
Processor 1501 can be general processor, digital signal processor (Digital Signal Processor, DSP), dedicated
Integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general
Processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with institute of the embodiment of the present invention
The step of disclosed method, can be embodied directly in hardware decoding processor and execute completion, or with the hardware in decoding processor
And software module combination executes completion.Software module can be located at random access memory, and flash memory, read-only memory may be programmed read-only
In the storage medium of this fields such as memory or electrically erasable programmable memory, register maturation.The storage medium is located at
The step of memory 1502, processor 1501 reads the information in memory 1502, completes the above method in conjunction with its hardware.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its
Combination is to realize.For hardware realization, processing unit be may be implemented in one or more specific integrated circuit (Application
Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing,
DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic
Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor,
In controller, microcontroller, microprocessor, other electronic units for executing function of the present invention or combinations thereof.
For software implementations, the module (such as process, function etc.) of function described in the execution embodiment of the present invention can be passed through
To realize technology described in the embodiment of the present invention.Software code is storable in memory and is executed by processor.Storage
Device can in the processor or portion realizes outside the processor.
Optionally, processor 1501 is also used to: carrying out Face datection to the preview image;If being wrapped in the preview image
Include human face region, it is determined that the human face region is photometry region;Otherwise, it determines the central area of the preview image is to survey light
Region.
Optionally, processor 1501 is also used to: according to the corresponding light metering weight of pixel in the photometry region, determining institute
State the exposure brightness value of preview image.
Optionally, processor 1501 is also used to: determining the brightness value of pixel in the photometry region;According to the pixel
The light metering weight of point, is weighted and averaged calculating to the brightness value of pixel in the photometry region, to obtain the preview graph
The exposure brightness value of picture.
Optionally, processor 1501 is also used to: if the exposure brightness value be lower than the target brightness value, enhancing described in
The intensity of light of infrared lamp, to increase the exposure brightness value of the preview image;If the exposure brightness value is higher than described
Target brightness value then weakens the intensity of light of the infrared lamp, to reduce the exposure brightness value of the preview image.
Optionally, processor 1501 is also used to: obtaining the ambient brightness value of mobile terminal;If the ambient brightness value is lower than
Preset threshold then opens the infrared lamp of the mobile terminal.
The embodiment of the present invention is provided with infrared lamp in mobile terminal, when being shot under low light conditions using mobile terminal,
Infrared lamp can be opened, preview image is acquired by the camera of mobile terminal, and the preview is determined according to photometry region
The exposure brightness value of image can be by described infrared if the exposure brightness value does not meet preset target brightness value
The exposure brightness value of the preview image is adjusted in lamp, so that the exposure brightness value meets preset target brightness value.
For example, the light of infrared lamp can be enhanced if the exposure brightness value of the preview image is less than preset target brightness value
Intensity carries out light filling, to increase the exposure brightness value of the preview image, improves the shooting effect of mobile terminal under low light conditions
Fruit.Further, since infrared lamp sending is black light, therefore, carrying out light filling using infrared lamp has hidden, energy-efficient spy
Point will not cause to alarm to subject, will not damage to the eyes of subject.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple
Place illustrates referring to the part of embodiment of the method.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with
The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can provide as method, apparatus or calculate
Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can
With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code
The form of the computer program product of implementation.
The embodiment of the present invention be referring to according to the method for the embodiment of the present invention, terminal device (system) and computer program
The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions
In each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide these
Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals
Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices
Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram
The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices
In computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packet
The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram
The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that
Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus
The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart
And/or in one or more blocks of the block diagram specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases
This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as
Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap
Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, article
Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited
Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
It above to a kind of image pickup method provided by the present invention and device, is described in detail, tool used herein
Principle and implementation of the present invention are described for body example, the above embodiments are only used to help understand this hair
Bright method and its core concept;At the same time, for those skilled in the art, according to the thought of the present invention, specific real
Apply in mode and application range that there will be changes, in conclusion the content of the present specification should not be construed as to limit of the invention
System.
Claims (10)
1. a kind of image pickup method, it is applied to mobile terminal, which is characterized in that the mobile terminal includes infrared lamp and camera,
The described method includes:
The infrared lamp is opened, preview image is acquired by the camera;
It determines the photometry region of the preview image, and exposure brightness value is calculated according to the photometry region;
According to the exposure brightness value and preset target brightness value, the luminous intensity of the infrared lamp is adjusted, and by described
Camera shoots image;
It is described that exposure brightness value is calculated according to the photometry region, comprising: according to the corresponding survey of pixel in the photometry region
Light weight determines the exposure brightness value of the preview image;
It is described that the exposure brightness value of the preview image is determined according to the corresponding light metering weight of pixel in the photometry region,
Comprise determining that the brightness value of pixel in the photometry region;According to the light metering weight of the pixel, to the photometry region
The brightness value of middle pixel is weighted and averaged calculating, to obtain the exposure brightness value of the preview image.
2. the method according to claim 1, wherein the photometry region of the determination preview image, comprising:
Face datection is carried out to the preview image;
If in the preview image including human face region, it is determined that the human face region is photometry region;Otherwise, it determines described pre-
Look at image central area be photometry region.
3. the method according to claim 1, wherein described bright according to the exposure brightness value and preset target
Angle value adjusts the luminous intensity of the infrared lamp, comprising:
If the exposure brightness value is lower than the target brightness value, enhance the intensity of light of the infrared lamp, described in increasing
The exposure brightness value of preview image;Or
If the exposure brightness value is higher than the target brightness value, weaken the intensity of light of the infrared lamp, described in reducing
The exposure brightness value of preview image.
4. the method according to claim 1, wherein the method also includes:
Obtain the ambient brightness value of mobile terminal;
If the ambient brightness value is lower than preset threshold, the infrared lamp of the mobile terminal is opened.
5. a kind of filming apparatus, which is characterized in that described device be applied to mobile terminal, the mobile terminal include infrared lamp and
Camera, described device include:
Image collection module acquires preview image by the camera for opening the infrared lamp;
Brightness determining module, for determining the photometry region of the preview image, and it is bright according to photometry region calculating exposure
Angle value;
Luminance adjustment module, for adjusting the hair of the infrared lamp according to the exposure brightness value and preset target brightness value
Luminous intensity, and image is shot by the camera;
The brightness determining module, comprising:
Brightness determines submodule, for determining the preview graph according to the corresponding light metering weight of pixel in the photometry region
The exposure brightness value of picture;
The brightness determines submodule, comprising:
Brightness value determination unit, for determining the brightness value of pixel in the photometry region;
Luminance value computing unit, the brightness for the light metering weight according to the pixel, to pixel in the photometry region
Value is weighted and averaged calculating, to obtain the exposure brightness value of the preview image.
6. device according to claim 5, which is characterized in that the brightness determining module, comprising:
Detection sub-module, for carrying out Face datection to the preview image;
Region determines submodule, if for including human face region in the preview image, it is determined that the human face region is to survey light
Region;Otherwise, it determines the central area of the preview image is photometry region.
7. device according to claim 5, which is characterized in that the luminance adjustment module, comprising:
First adjusts submodule, if being lower than the target brightness value for the exposure brightness value, enhances the infrared lamp
Intensity of light, to increase the exposure brightness value of the preview image;Or
Second adjusts submodule, if being higher than the target brightness value for the exposure brightness value, weakens the infrared lamp
Intensity of light, to reduce the exposure brightness value of the preview image.
8. device according to claim 5, which is characterized in that described device further include:
Ambient brightness acquisition module, for obtaining the ambient brightness value of mobile terminal;
Infrared lamp opening module opens the infrared of the mobile terminal if being lower than preset threshold for the ambient brightness value
Lamp.
9. a kind of mobile terminal characterized by comprising memory, processor and storage are on a memory and can be in processor
The computer program of upper operation, which is characterized in that the processor is realized when executing described program as appointed in Claims 1-4
The step of image pickup method described in one.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that described program is processed
The step of device realizes image pickup method according to any one of claims 1 to 4 when executing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711002518.9A CN107734225B (en) | 2017-10-24 | 2017-10-24 | A kind of image pickup method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711002518.9A CN107734225B (en) | 2017-10-24 | 2017-10-24 | A kind of image pickup method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107734225A CN107734225A (en) | 2018-02-23 |
CN107734225B true CN107734225B (en) | 2019-06-07 |
Family
ID=61213524
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711002518.9A Active CN107734225B (en) | 2017-10-24 | 2017-10-24 | A kind of image pickup method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107734225B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3820144A1 (en) * | 2019-11-07 | 2021-05-12 | Axis AB | Method for displaying a video stream of a scene |
Families Citing this family (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109543523A (en) * | 2018-10-18 | 2019-03-29 | 安克创新科技股份有限公司 | Image processing method, device, system and storage medium |
CN111131554A (en) * | 2018-10-31 | 2020-05-08 | 北京小米移动软件有限公司 | Terminal device |
CN109587407A (en) * | 2018-12-14 | 2019-04-05 | 广州华多网络科技有限公司 | Exposure amount adjustment method, device and the computer equipment of image taking |
CN109819176A (en) * | 2019-01-31 | 2019-05-28 | 深圳达闼科技控股有限公司 | A kind of image pickup method, system, device, electronic equipment and storage medium |
CN110418069B (en) * | 2019-07-29 | 2024-02-20 | 深圳传音控股股份有限公司 | Light supplementing control method, mobile terminal and computer readable storage medium |
CN110493518A (en) * | 2019-08-15 | 2019-11-22 | 移康智能科技(上海)股份有限公司 | A kind of image-pickup method of security protection camera |
CN110691199A (en) * | 2019-10-10 | 2020-01-14 | 厦门美图之家科技有限公司 | Face automatic exposure method and device, shooting equipment and storage medium |
CN111064898B (en) * | 2019-12-02 | 2021-07-16 | 联想(北京)有限公司 | Image shooting method and device, equipment and storage medium |
CN110958394B (en) * | 2019-12-18 | 2022-10-04 | 江苏紫米电子技术有限公司 | Camera shooting method, device, storage medium and camera |
CN111200707A (en) * | 2019-12-24 | 2020-05-26 | 杭州宇泛智能科技有限公司 | Infrared parameter adjusting method and device of face recognition equipment and electronic equipment |
CN113271414B (en) * | 2020-02-14 | 2022-11-18 | 上海海思技术有限公司 | Image acquisition method and device |
CN111614892B (en) * | 2020-04-28 | 2022-04-01 | 深圳英飞拓智能技术有限公司 | Face image acquisition method, shooting device and computer-readable storage medium |
WO2021223113A1 (en) * | 2020-05-06 | 2021-11-11 | 深圳市大疆创新科技有限公司 | Metering method, camera, electronic device, and computer-readable storage medium |
CN111937497B (en) * | 2020-07-07 | 2024-02-09 | 深圳市锐明技术股份有限公司 | Control method, control device and infrared camera |
CN111988532B (en) * | 2020-07-16 | 2022-07-12 | 哈尔滨海能达科技有限公司 | Control method and device for night vision compensation lamp switch |
CN112073645B (en) * | 2020-09-04 | 2022-04-08 | 深圳创维-Rgb电子有限公司 | Exposure control method, device, terminal equipment and storage medium |
CN112861645A (en) * | 2021-01-18 | 2021-05-28 | 盛视科技股份有限公司 | Infrared camera dim light environment compensation method and device and electronic equipment |
CN112819722A (en) * | 2021-02-03 | 2021-05-18 | 东莞埃科思科技有限公司 | Infrared image face exposure method, device, equipment and storage medium |
CN113114951A (en) * | 2021-04-25 | 2021-07-13 | 北京华捷艾米科技有限公司 | Infrared exposure value adjusting method, system and equipment |
CN113556477B (en) * | 2021-09-23 | 2021-12-14 | 南昌龙旗信息技术有限公司 | Ambient brightness determination method and device, medium and camera |
CN114885096B (en) * | 2022-03-29 | 2024-03-15 | 北京旷视科技有限公司 | Shooting mode switching method, electronic equipment and storage medium |
CN115278099A (en) * | 2022-06-29 | 2022-11-01 | 广东小天才科技有限公司 | Light supplement lamp control method, terminal device and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104301624A (en) * | 2014-10-30 | 2015-01-21 | 青岛海信移动通信技术股份有限公司 | Image shooting brightness control method and device |
CN105744176A (en) * | 2016-02-15 | 2016-07-06 | 广东欧珀移动通信有限公司 | Screen light supplementing method and device as well as mobile terminal |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102271218B (en) * | 2011-01-17 | 2012-08-29 | 深圳市保千里电子有限公司 | Scene-oriented ultra-intelligent video camera and camera shooting method thereof |
CN105227823A (en) * | 2014-06-03 | 2016-01-06 | 维科技术有限公司 | The image pickup method of mobile terminal and device thereof |
CN104410794A (en) * | 2014-12-23 | 2015-03-11 | 深圳市保千里电子有限公司 | Digital camera with night vision function |
CN105516593A (en) * | 2015-12-17 | 2016-04-20 | 上海斐讯数据通信技术有限公司 | Shooting apparatus and shooting light supplement adjustment method and system therefor |
-
2017
- 2017-10-24 CN CN201711002518.9A patent/CN107734225B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104301624A (en) * | 2014-10-30 | 2015-01-21 | 青岛海信移动通信技术股份有限公司 | Image shooting brightness control method and device |
CN105744176A (en) * | 2016-02-15 | 2016-07-06 | 广东欧珀移动通信有限公司 | Screen light supplementing method and device as well as mobile terminal |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3820144A1 (en) * | 2019-11-07 | 2021-05-12 | Axis AB | Method for displaying a video stream of a scene |
Also Published As
Publication number | Publication date |
---|---|
CN107734225A (en) | 2018-02-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107734225B (en) | A kind of image pickup method and device | |
US11563897B2 (en) | Image processing method and apparatus which determines an image processing mode based on status information of the terminal device and photographing scene information | |
CN108933899B (en) | Panorama shooting method, device, terminal and computer readable storage medium | |
CN107071272B (en) | Method and device for controlling brightness of camera fill-in light and terminal | |
CN107743590B (en) | Method and apparatus for performing exposure estimation using time-of-flight sensor | |
WO2020034737A1 (en) | Imaging control method, apparatus, electronic device, and computer-readable storage medium | |
CN107592453B (en) | A kind of image pickup method and mobile terminal | |
CN109005366A (en) | Camera module night scene image pickup processing method, device, electronic equipment and storage medium | |
CN106060249B (en) | Photographing anti-shake method and mobile terminal | |
CN107948538B (en) | Imaging method, imaging device, mobile terminal and storage medium | |
WO2017096866A1 (en) | Method and apparatus for generating high dynamic range image | |
CN105960797B (en) | method and device for processing image | |
CN105227857B (en) | A kind of method and apparatus of automatic exposure | |
CN108322646A (en) | Image processing method, device, storage medium and electronic equipment | |
CN105872350A (en) | Adjusting method and device for photographing parameter of camera | |
CN103179348A (en) | Shooting method and system for mobile terminals and mobile terminal | |
CN105306806B (en) | A kind of mobile terminal and its method taken pictures | |
CN111050078B (en) | Photographing method, mobile terminal and computer storage medium | |
TWI486057B (en) | Image pickup device and image synthesis method thereof | |
CN106791451B (en) | Photographing method of intelligent terminal | |
US9674496B2 (en) | Method for selecting metering mode and image capturing device thereof | |
US20220053121A1 (en) | A method, software product, camera device and system for determining artificial lighting and camera settings | |
US8212891B2 (en) | Apparatus, methods and computer readable storage mediums | |
CN107071262B (en) | Photographic method and camera arrangement | |
JP6810299B2 (en) | Image processing equipment, methods, and programs as well as imaging equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |