CN109218620A - Photographic method, device, storage medium and mobile terminal based on ambient brightness - Google Patents

Photographic method, device, storage medium and mobile terminal based on ambient brightness Download PDF

Info

Publication number
CN109218620A
CN109218620A CN201811236728.9A CN201811236728A CN109218620A CN 109218620 A CN109218620 A CN 109218620A CN 201811236728 A CN201811236728 A CN 201811236728A CN 109218620 A CN109218620 A CN 109218620A
Authority
CN
China
Prior art keywords
ambient brightness
frame image
brightness
image
section
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
CN201811236728.9A
Other languages
Chinese (zh)
Other versions
CN109218620B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811236728.9A priority Critical patent/CN109218620B/en
Publication of CN109218620A publication Critical patent/CN109218620A/en
Application granted granted Critical
Publication of CN109218620B publication Critical patent/CN109218620B/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/80Camera processing pipelines; Components thereof
    • 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

Abstract

The embodiment of the present application discloses a kind of photographic method based on ambient brightness, device, storage medium and terminal, this method comprises: first, when triggering photographing instruction, obtains continuous multiple first frame images and obtain the corresponding ambient brightness value of each first frame image;Secondly, determining object brightness section according to the corresponding multiple ambient brightness values of the multiple first frame image;Again, at least one second frame image is determined according to the object brightness section;Finally, generating target image according at least one described second frame image.By using above-mentioned technical proposal, it can be avoided influence of the ambient brightness variation to shooting brightness of image accuracy, improve shooting quality.

Description

Photographic method, device, storage medium and mobile terminal based on ambient brightness
Technical field
The invention relates to technical field of mobile terminals more particularly to a kind of photographic method based on ambient brightness, Device, storage medium and mobile terminal.
Background technique
Currently, camera function has become the standard configuration of most mobile terminals, terminal user can pass through portable shifting Dynamic terminal quickly and easily realizes photographing operation.
When terminal user is taken pictures using mobile terminal, if ambient brightness changes, the image shot will There is the problem of brightness inaccuracy, to influence the quality of shooting image.
Summary of the invention
The embodiment of the present application provides a kind of photographic method based on ambient brightness, device, storage medium and mobile terminal, Shooting quality can be improved.
In a first aspect, the embodiment of the present application provides a kind of photographic method based on ambient brightness, comprising:
When triggering photographing instruction, obtains continuous multiple first frame images and obtain the corresponding ring of each first frame image Border brightness value;
Object brightness section is determined according to the corresponding multiple ambient brightness values of the multiple first frame image;
At least one second frame image is determined according to the object brightness section;
Target image is generated according at least one described second frame image.
Second aspect, the embodiment of the present application provide a kind of camera arrangement based on ambient brightness, comprising:
First frame image collection module, for when triggering photographing instruction, obtaining continuous multiple first frame images and obtaining Take the corresponding ambient brightness value of each first frame image;
Brightness section determining module, the multiple first frame figure for being obtained according to the first frame image collection module As corresponding multiple ambient brightness values determine object brightness section;
Second frame image determining module, the object brightness section for being determined according to the brightness section determining module Determine at least one second frame image;
Generation module, it is raw at least one second frame image according to the second frame image determining module determination At target image.
The third aspect, the embodiment of the present application provide a kind of computer readable storage medium, are stored thereon with computer journey Sequence realizes the photographic method based on ambient brightness as described in the embodiment of the present application when the program is executed by processor.
Fourth aspect, the embodiment of the present application provide a kind of mobile terminal, including memory, processor and are stored in storage It can realize on device and when the computer program of processor operation, the processor execute the computer program as the application is real Apply the photographic method described in example based on ambient brightness.
The scheme of taking pictures based on ambient brightness provided in the embodiment of the present application, firstly, being obtained when triggering photographing instruction Continuous multiple first frame images simultaneously obtain the corresponding ambient brightness value of each first frame image;Secondly, according to the multiple The corresponding multiple ambient brightness values of one frame image determine object brightness section;Again, it is determined extremely according to the object brightness section A few second frame image;Finally, generating target image according at least one described second frame image.By using above-mentioned technology Scheme can be avoided influence of the ambient brightness variation to shooting brightness of image accuracy, improve shooting quality.
Detailed description of the invention
Fig. 1 is a kind of flow diagram of the photographic method based on ambient brightness provided by the embodiments of the present application;
Fig. 2 is the flow diagram of another photographic method based on ambient brightness provided by the embodiments of the present application;
Fig. 3 is the flow diagram of another photographic method based on ambient brightness provided by the embodiments of the present application;
Fig. 4 is the flow diagram of another photographic method based on ambient brightness provided by the embodiments of the present application;
Fig. 5 is the flow diagram of another photographic method based on ambient brightness provided by the embodiments of the present application;
Fig. 6 is the flow diagram of another photographic method based on ambient brightness provided by the embodiments of the present application;
Fig. 7 is a kind of structural block diagram of the camera arrangement based on ambient brightness provided by the embodiments of the present application;
Fig. 8 is a kind of structural schematic diagram of mobile terminal provided by the embodiments of the present application.
Specific embodiment
To further illustrate the technical scheme of the present invention below with reference to the accompanying drawings and specific embodiments.It is understood that It is that specific embodiment described herein is used only for explaining the present invention rather than limiting the invention.It further needs exist for illustrating , only the parts related to the present invention are shown for ease of description, in attached drawing rather than entire infrastructure.
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail The processing or method described as flow chart.Although each step is described as the processing of sequence by flow chart, many of these Step can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of each step can be rearranged.When its operation The processing can be terminated when completion, it is also possible to have the additional step being not included in attached drawing.The processing can be with Corresponding to method, function, regulation, subroutine, subprogram etc..
Currently, camera function has become the standard configuration of most mobile terminals, terminal user can pass through portable shifting Dynamic terminal quickly and easily realizes photographing operation.When terminal user is taken pictures using mobile terminal, if environment colour temperature occurs Variation, the then image shot just will appear the problem of colour temperature inaccuracy, to influence the quality of shooting image.In different environment The required time for exposure and it is ultimately imaged uniformly identical under brightness, moment of taking pictures may not be optimal ambient brightness section Point will appear the problem of the brightness inaccuracy of shooting image at this time, and therefore, there is still a need for change for the image camera function of mobile terminal Into.
The embodiment of the present application provides a kind of photographic method based on ambient brightness, can obtain after triggering photographing instruction Multiple first frame images and the corresponding ambient brightness value of each first frame image are taken, preferred mesh is determined based on ambient brightness value Brightness section is marked, and target image is generated based at least one corresponding second frame image of object brightness section, so that target figure As generating by the second frame image under preferred ambient brightness, and then ambient brightness is more appropriate takes pictures moment for crawl, avoids User repeats to take pictures and can not grab optimal photo opportunity, while optimizing brightness of image, improves shooting picture quality.Specific side Case is as follows:
Fig. 1 is a kind of flow diagram of the photographic method based on ambient brightness provided by the embodiments of the present application, this method The case where being taken pictures when changing suitable for ambient brightness.This method can be held by the mobile terminal with camera function Row, the mobile terminal can be smart phone, tablet computer, wearable device (smartwatch or intelligent glasses) etc., this method Specifically comprise the following steps:
Step 110, when triggering photographing instruction, obtain continuous multiple first frame images and simultaneously obtain each first frame image Corresponding ambient brightness value.
When user starts camera function, display is taken pictures button in screen, and user, which clicks this and takes pictures, button or passes through earphone Equal external devices can trigger photographing instruction.Multiple first frame images are continuously acquired when triggering photographing instruction.For any one First frame image obtains ambient brightness value when taking pictures first, then obtains first frame image by photosensitive element.Obtain N (N More than or equal to the key-value pair of 2) group (first frame image, ambient brightness value).The time for exposure of first frame image can it is identical can also With difference.Optionally, the time for exposure of first frame image can be determined according to ambient brightness.Optionally, multiple are continuously acquired When one frame image, the quantity of first frame image can be preset quantity (such as 10), or change speed according to ambient brightness Rate determines the quantity of first frame image.
Further, ambient brightness value changes when not triggering photographing instruction every time, so if triggering every time Photographing instruction, which is performed both by step 110, can then improve terminal power consumption amount.Based on this, in preview phase detection ambient brightness variation speed Rate.If ambient brightness rate of change is greater than scheduled rate threshold value, when triggering photographing instruction, continuous multiple first are obtained Frame image simultaneously obtains the corresponding ambient brightness value of each first frame image.
When user enters camera function, terminal obtains preview frame image by camera, and preview frame image is shown In screen, the preview frame image that user shows according to preview phase, which confirms and adjusts to photo environment and photograph subject, takes pictures The parameters such as angle, user triggers photographing instruction and takes pictures after debugging.Optionally, after getting preview frame image, It can be by carrying out the ambient brightness rate of change that image analysis determines preview phase to preview frame image.If the ambient brightness Rate of change variation is slower, then is not in image quality issues caused by changing because of ambient brightness.If ambient brightness changes Rate is greater than scheduled rate threshold value, then when triggering photographing instruction, executes step 110, to start the embodiment of the present application execution.
Optionally, changed according to preview frame image detection with the presence or absence of ambient brightness, be can be in starting mobile terminal It begins to execute one-time detection ambient brightness situation of change in real time or every prefixed time interval (such as 1 second) after shooting function, And update testing result.It is also possible to roll and stores newest M (M is more than or equal to 2) a preview frame image, is touched when in terminal user It is pre- according to the M of storage when sending out photographing instruction (such as click shooting button triggering, speech trigger, gesture or expression triggering) Frame image of looking at calculates ambient brightness rate of change, if ambient brightness rate of change is greater than scheduled rate threshold value, obtains continuous Multiple first frame images and obtain the corresponding ambient brightness value of each first frame image.
Step 120 determines object brightness section according to the corresponding multiple ambient brightness values of multiple first frame images.
The corresponding multiple ambient brightness values of multiple first frame images are discrete brightness value, are considered for equilibrium, from multiple The brightness value of average brightness or closest average brightness is chosen in ambient brightness value as equilibrium value.In being with the equilibrium matter The heart determines object brightness section as siding-to-siding block length using the presupposition multiple in the total section of multiple ambient brightness values.Wherein, presupposition multiple is big In zero less than one.For example, ambient brightness is 200K, 300K, 500K, 400K and 450K, then average brightness is 370K, can be by it As equilibrium value.If presupposition multiple is 1/3, the presupposition multiple in the total section of ambient brightness value (500-200=300) is 100K. Centered on equilibrium value (370K), using the presupposition multiple in the total section of the multiple ambient brightness values object brightness determining as siding-to-siding block length Section is [320K, 420K].
Step 130 determines at least one second frame image according to object brightness section.
It searches corresponding environmental light brightness and is located at the first frame image in object brightness section as the second frame image.
Step 140 generates target image according at least one second frame image.
If the second frame image is one, using the second frame image as target image.Alternatively, according to the second frame image pair The ambient brightness answered carries out ambient brightness detection, takes pictures, obtains when ambient brightness is matched with the ambient brightness of the second frame image Target image.If the second frame image have it is multiple, select a picture quality preferable from multiple second frame images as Target image.Optionally, multiple second frame images can also be merged, obtains target image.
Illustratively, multiple second frame images are merged, obtain target image, the embodiment of the present application to this without It limits.Can be according to target range of color temperature, by the brightness adjustment for shooting at least two second frame images it is consistent after, it is bright to adjusting At least two frame images after degree carry out fusion treatment, generate target and shoot image.Further, using equilibrium value as brightness tune Whole a reference value is merged by the brightness adjustment of multiple second frame images to equilibrium value, then by multiple second frame images, generates mesh Mark shooting image while improving image processing efficiency, can also be improved the accurate of final determining target shooting image color temperature value Property.
Optionally, it when being merged to multiple second frame images, can be based on Pixel-level blending algorithm and/or feature level To treated, at least two second frame images carry out fusion treatment to blending algorithm, generate target and shoot image.Wherein, Pixel-level Fusion is also referred to as pixel-based fusion, can be and is directly handled the image data of collected color temperature change and obtain fusion figure The process of picture.Specifically, Pixel-level blending algorithm may include spatial-domain algorithm and transform-domain algorithm etc., in spatial-domain algorithm again It may include a variety of fusion rule methods, such as Logical filtering method, gray moment and comparison modulation method;Transform-domain algorithm In again may include pyramid decomposition fusion method and Wavelet Transform etc..Being advantageous in that using Pixel-level blending algorithm can use up The detailed information gone back in original image more than possible, such as the extraction of edge, texture.Can be good at restoring content of shooting and The features such as colour temperature color.Feature level Image Fusion can be from collect in image colour temperature, color character information extraction Out, then these characteristic informations are analyzed, handled and are integrated to obtain fused characteristics of image.Using feature level Blending algorithm is advantageous in that the accuracy of the colour temperature color of fused image greatly promotes, and feature-based fusion is to image Information is compressed, then is analyzed and handled with computer, and consumed memory and time are relatively small, shoot image procossing Real-time will increase.
The embodiment of the present application provides a kind of photographic method based on ambient brightness, firstly, obtaining when triggering photographing instruction It takes continuous multiple first frame images and obtains the corresponding ambient brightness value of each first frame image.Secondly, according to multiple first The corresponding multiple ambient brightness values of frame image determine object brightness section.Again, at least one is determined according to object brightness section Second frame image.Finally, generating target image according at least one second frame image.Relative to can not when ambient brightness changes User, which can not accurately capture, causes brightness of image abnormal, and picture quality is low, the embodiment of the present application can after triggering photographing instruction, Multiple first frame images and the corresponding ambient brightness value of each first frame image are obtained, is determined based on ambient brightness value preferred Object brightness section, and target image is generated based at least one corresponding second frame image of object brightness section, so that target Image is generated by the second frame image under preferred ambient brightness, and then grabs that ambient brightness is more appropriate takes pictures moment, is kept away Exempt from user to repeat to take pictures and optimal photo opportunity can not be grabbed, while optimizing brightness of image, improves shooting picture quality.
Fig. 2 is the flow diagram of another photographic method based on ambient brightness provided by the embodiments of the present application, as Further explanation to above-described embodiment, this method comprises the following steps:
Step 210, the storage second environment brightness value rolled according to detection time window, second environment brightness value are detection The corresponding ambient brightness value of time window.
After user enters camera function, framing information is obtained by preview phase, in preview phase according between preset time Every acquisition ambient brightness value.Detection time window can be carried out according to the constant interval and pace of change of second environment brightness value Adjustment.The constant interval of second environment brightness value is bigger, and detection time window is longer, and the pace of change of second environment brightness value is got over Fastly, detection time window is shorter.Detection time window may be fixed duration, such as -1 minute 5 seconds.
Step 220 determines ambient brightness rate of change according to second environment brightness value.
Ambient brightness rate of change can have total section of second environment brightness value to obtain divided by detection time window.It can be with Distribution temporary memory space storage detection time window rolls the second environment brightness value of storage in memory, is based on the second ring The temporal information that border brightness value obtains clears up the discarding data in memory space in time.
If step 230, ambient brightness rate of change are greater than scheduled rate threshold value, when triggering photographing instruction, obtain Continuous multiple first frame images simultaneously obtain the corresponding ambient brightness value of each first frame image.
Wherein, it is preset to can be the sensitivity changed according to human eye to ambient brightness for scheduled rate threshold value, Size can be fixed, and can also be adjusted therewith according to the change of photographed scene or screening-mode.Similar, detection time The duration of window can be pre-set fixed duration;It is also possible to based on environment brightness change rate in photographed scene at that time Real-time perfoming adjustment, for example, the duration of the detection time window can be set relatively short when ambient brightness rate of change is very fast It is some;If second environment luminance frequency is larger, the duration of the detection time window be can be set relatively longer.Detect ring Whether border brightness change rate is greater than scheduled rate threshold value.If being more than scheduled rate threshold value, a flag bit can be prestored.When When receiving photographing instruction, determines whether to obtain continuous multiple first frame images and obtain every according to the data content of flag bit The corresponding ambient brightness value of a first frame image.
Step 240 determines object brightness section according to the corresponding multiple ambient brightness values of multiple first frame images.
Step 250 determines at least one second frame image according to object brightness section.
Step 260 generates target image according at least one second frame image.
Photographic method provided by the embodiments of the present application based on ambient brightness can be used limited based on detection time window System resource environmental light brightness rate of change is detected, and then can be obtained according to preview phase when triggering photographing instruction To judgement conclusion determine whether to obtain continuous multiple first frame images and to obtain the corresponding environment of each first frame image bright Angle value improves the response speed of photographing instruction, improves resource utilization ratio.
Fig. 3 is the flow diagram of another photographic method based on ambient brightness provided by the embodiments of the present application, as Further explanation to above-described embodiment, this method comprises the following steps:
Step 310, the multiple third frame images for obtaining preview phase.
The preview frame image of newest preview phase is obtained as third frame image.Third frame image can cache and memory In, and real-time update.Multiple third frame images are continuous preview frame image, or the preview frame figure obtained according to fixed intervals Picture.
Step 320 determines ambient brightness rate of change according to the luminance information of third frame image.
Brightness is carried out to third frame image and detects determining luminance information, which can be with the average bright of third frame image Spend information.It can be using the rate of change of average luminance information as ambient brightness rate of change.It further, can also be from third It is identified in frame image by edge detection and main body, obtains background area, environment is determined according to the luminance information of background area Luminance information, and then determine ambient brightness rate of change.
If step 330, ambient brightness rate of change are greater than scheduled rate threshold value, when triggering photographing instruction, obtain Continuous multiple first frame images simultaneously obtain the corresponding ambient brightness value of each first frame image.
Step 340 determines object brightness section according to the corresponding multiple ambient brightness values of multiple first frame images.
Step 350 determines at least one second frame image according to object brightness section.
Step 360 generates target image according at least one second frame image.
Photographic method provided by the embodiments of the present application based on ambient brightness can pass through third frame image in preview phase It determines ambient brightness rate of change, and then without detecting ambient brightness by luminance sensor, reduces power consumption of terminal.
Fig. 4 is the flow diagram of another photographic method based on ambient brightness provided by the embodiments of the present application, as Further explanation to above-described embodiment, this method comprises the following steps:
Step 410, when triggering photographing instruction, obtain continuous multiple first frame images and simultaneously obtain each first frame image Corresponding ambient brightness value.
Step 420 determines at least one first brightness region according to the corresponding multiple ambient brightness values of multiple first frame images Between.
When ambient brightness variation is more dispersed, the corresponding multiple ambient brightness values of first frame image are presented multiclass and polymerize shape Formula distribution, integrated distribution is in multiple first brightness sections respectively.
Step 430 determines object brightness section according to the first brightness section.
At this point, if average brightness, which is likely to occur equilibrium value determination as equilibrium value, is not allowed accurate problem.It is optional , matched first brightness section can be chosen from multiple first brightness sections according to current time information as object brightness Section.Further, it can be combined with location information, such as indoor or outdoors determine that target is bright from multiple first brightness sections Spend section.
Step 440 determines at least one second frame image according to object brightness section.
Step 450 generates target image according at least one second frame image.
Photographic method provided by the embodiments of the present application based on ambient brightness, can be from multiple first brightness sections more It accurately determines object brightness section, further increases picture quality.
Fig. 5 is the flow diagram of another photographic method based on ambient brightness provided by the embodiments of the present application, as Further explanation to above-described embodiment, this method comprises the following steps:
Step 510, when triggering photographing instruction, obtain continuous multiple first frame images and simultaneously obtain each first frame image Corresponding ambient brightness value.
Step 520 obtains current scene information.
Current scene information may include the location information of current scene and the reference object information that current scene includes. Reference object includes light source, the main body that is taken etc..
Step 530 determines target according to current scene information and the corresponding multiple ambient brightness values of multiple first frame images Brightness section.
The matching relationship that current scene information and ambient brightness value can be determined by way of machine learning, passes through this Object brightness section is determined with relationship.
Step 540 determines at least one second frame image according to object brightness section.
Step 550 generates target image according at least one second frame image.
Photographic method provided by the embodiments of the present application based on ambient brightness can determine according to current scene and work as front court The matched object brightness section of scape, and then the second frame image is more accurately obtained, improve the accuracy of target image.
Fig. 6 is the flow diagram of another photographic method based on ambient brightness provided by the embodiments of the present application, as Further explanation to above-described embodiment, this method comprises the following steps:
Step 610, when triggering photographing instruction, obtain continuous multiple first frame images and simultaneously obtain each first frame image Corresponding ambient brightness value.
Step 620 determines object brightness section according to the corresponding multiple ambient brightness values of multiple first frame images.
Step 630 determines at least one second frame image according to object brightness section.
Step 640 is split the second frame image, obtains subgraph.
It can be split according to default size, cluster segmentation can also be carried out according to photograph subject, obtain each shooting The image-region of main body.
Step 650 determines target subgraph according to the quality score of subgraph.
The subgraph gone out to each second frame image segmentation scores, and obtains quality score.Quality score is just higher Subgraph be determined as target subgraph.
Step 660 generates target image according to target subgraph.
Target subgraph is generated into target image by way of splicing and being superimposed.
Photographic method provided by the embodiments of the present application based on ambient brightness can be based on matter from multiple second positive images The amount scoring screening higher target subgraph of mass, and target image is formed according to target subgraph, so that target image Details is more clear, and improves picture quality.
Fig. 7 is a kind of structural block diagram of the camera arrangement based on ambient brightness provided by the embodiments of the present application, which can It by software and or hardware realization, is typically integrated in the mobile terminal with camera function, the various embodiments described above institute can be executed The photographic method based on ambient brightness stated.As shown in fig. 7, the device includes: first frame image collection module 710, brightness region Between determining module 720, the second frame image determining module 730 and generation module 740.
First frame image collection module 710, for when triggering photographing instruction, obtaining continuous multiple first frame images simultaneously Obtain the corresponding ambient brightness value of each first frame image;
Brightness section determining module 720, the multiple for being obtained according to the first frame image collection module 710 The corresponding multiple ambient brightness values of one frame image determine object brightness section;
Second frame image determining module 730, the target for being determined according to the brightness section determining module 720 are bright Degree section determines at least one second frame image;
Generation module 740, at least one second frame according to the second frame image determining module 730 determination Image generates target image.
Further, first frame image collection module 710 is used for:
Ambient brightness rate of change is detected in preview phase;
If the ambient brightness rate of change is greater than scheduled rate threshold value, when triggering photographing instruction, obtain continuous Multiple first frame images and obtain the corresponding ambient brightness value of each first frame image.
Further, first frame image collection module 710 detects ambient brightness rate of change in preview phase, comprising:
According to the storage second environment brightness value that detection time window rolls, the second environment brightness value is the time The corresponding ambient brightness value of window;
Ambient brightness rate of change is determined according to the second environment brightness value.
Further, first frame image collection module 710 detects ambient brightness rate of change in preview phase, comprising:
Obtain multiple third frame images of preview phase;
Ambient brightness rate of change is determined according to the luminance information of the third frame image.
Further, brightness section determining module 720 is used for:
At least one first brightness section is determined according to the corresponding multiple ambient brightness values of the multiple first frame image;
Object brightness section is determined according to first brightness section.
Further, brightness section determining module 720 is used for:
Obtain current scene information;
Target is determined according to the current scene information and the corresponding multiple ambient brightness values of the multiple first frame image Brightness section.
Further, generation module 740 is used for:
The second frame image is split, subgraph is obtained;
Target subgraph is determined according to the quality score of the subgraph;
Target image is generated according to the target subgraph.
The embodiment of the present application provides a kind of camera arrangement based on ambient brightness, firstly, first frame image collection module 710 when triggering photographing instruction, obtains continuous multiple first frame images and to obtain the corresponding environment of each first frame image bright Angle value.Secondly, brightness section determining module 720 determines that target is bright according to the corresponding multiple ambient brightness values of multiple first frame images Spend section.Again, the second frame image determining module 730 determines at least one second frame image according to object brightness section.Finally, Generation module 740 generates target image according at least one second frame image.Relative to can not user when ambient brightness changes Can not accurately capture causes brightness of image abnormal, and picture quality is low, and the embodiment of the present application can obtain after triggering photographing instruction Multiple first frame images and the corresponding ambient brightness value of each first frame image, determine preferred target based on ambient brightness value Brightness section, and target image is generated based at least one corresponding second frame image of object brightness section, so that target image It is generated by the second frame image under preferred ambient brightness, and then grabs that ambient brightness is more appropriate takes pictures moment, avoid using Family repeats to take pictures and can not grab optimal photo opportunity, while optimizing brightness of image, improves shooting picture quality.
Method provided by the aforementioned all embodiments of the application can be performed in above-mentioned apparatus, and it is corresponding to have the execution above method Functional module and beneficial effect.The not technical detail of detailed description in the present embodiment, reference can be made to the aforementioned all implementations of the application Method provided by example.
Fig. 8 is a kind of structural schematic diagram of terminal device provided by the embodiments of the present application.As shown in figure 8, the terminal can be with Include: shell (not shown), memory 801, central processing unit (Central Processing Unit, CPU) 802 (again Claim processor, hereinafter referred to as CPU), the computer program, the circuit that are stored on memory 801 and can be run on processor 802 Plate (not shown) and power circuit (not shown).The circuit board is placed in the space interior that the shell surrounds; The CPU802 and the memory 801 are arranged on the circuit board;The power circuit, for for each of the terminal Circuit or device power supply;The memory 801, for storing executable program code;The CPU802 described in reading by depositing The executable program code stored in reservoir 801 runs program corresponding with the executable program code.
The terminal further include: Peripheral Interface 803, RF (Radio Frequency, radio frequency) circuit 805, voicefrequency circuit 806, loudspeaker 811, power management chip 808, input/output (I/O) subsystem 809, touch screen 812, other input/controls Equipment 810 and outside port 804, these components are communicated by one or more communication bus or signal wire 807.
It should be understood that graphic terminal 800 is only an example of terminal, and terminal device 800 can be with With than shown in the drawings more or less component, two or more components can be combined, or can have Different component configurations.Various parts shown in the drawings can include one or more signal processings and/or dedicated integrated It is realized in the combination of hardware, software or hardware and software including circuit.
Just provided in this embodiment below to be described in detail for a kind of terminal device, the terminal device is with intelligent hand For machine.
Memory 801, the memory 801 can be accessed by CPU802, Peripheral Interface 803 etc., and the memory 801 can It can also include nonvolatile memory to include high-speed random access memory, such as one or more disk memory, Flush memory device or other volatile solid-state parts.
The peripheral hardware that outputs and inputs of equipment can be connected to CPU802 and deposited by Peripheral Interface 803, the Peripheral Interface 803 Reservoir 801.
I/O subsystem 809, the I/O subsystem 809 can be by the input/output peripherals in equipment, such as touch screen 812 With other input/control devicess 810, it is connected to Peripheral Interface 803.I/O subsystem 809 may include 8091 He of display controller For controlling one or more input controllers 8092 of other input/control devicess 810.Wherein, one or more input controls Device 8092 processed receives electric signal from other input/control devicess 810 or sends electric signal to other input/control devicess 810, Other input/control devicess 810 may include physical button (push button, rocker buttons etc.), dial, slide switch, behaviour Vertical pole clicks idler wheel.It is worth noting that input controller 8092 can with it is following any one connect: keyboard, infrared port, The indicating equipment of USB interface and such as mouse.
Wherein, according to the working principle of touch screen and transmission information medium classification, touch screen 812 can for resistance-type, Capacitor induction type, infrared-type or surface acoustic wave type.Classify according to mounting means, touch screen 812 can be with are as follows: external hanging type, built-in Formula or monoblock type.Classify according to technical principle, touch screen 812 can be with are as follows: vector pressure sensing technology touch screen, resistive technologies touching Touch screen, capacitance technology touch screen, infrared technology touch screen or surface acoustic wave technique touch screen.
Touch screen 812, the touch screen 812 are the input interface and output interface between user terminal and user, can It is shown to user depending on output, visual output may include figure, text, icon, video etc..Optionally, touch screen 812 is by user The electric signal (electric signal of such as contact surface) triggered on touch screen curtain, is sent to processor 802.
Display controller 8091 in I/O subsystem 809 receives electric signal from touch screen 812 or sends out to touch screen 812 Electric signals.Touch screen 812 detects the contact on touch screen, and the contact that display controller 8091 will test is converted to and is shown The interaction of user interface object on touch screen 812, i.e. realization human-computer interaction, the user interface being shown on touch screen 812 Object can be the icon of running game, the icon for being networked to corresponding network etc..It is worth noting that equipment can also include light Mouse, light mouse are the extensions for the touch sensitive surface for not showing the touch sensitive surface visually exported, or formed by touch screen.
RF circuit 805 is mainly used for establishing the communication of intelligent sound box Yu wireless network (i.e. network side), realizes intelligent sound box Data receiver and transmission with wireless network.Such as transmitting-receiving short message, Email etc..
Voicefrequency circuit 806 is mainly used for receiving audio data from Peripheral Interface 803, which is converted to telecommunications Number, and the electric signal is sent to loudspeaker 811.
Loudspeaker 811 is reduced to for intelligent sound box to be passed through RF circuit 805 from the received voice signal of wireless network Sound simultaneously plays the sound to user.
Power management chip 808, the hardware for being connected by CPU802, I/O subsystem and Peripheral Interface are powered And power management.
In the present embodiment, central processing unit 802 is used for:
When triggering photographing instruction, obtains continuous multiple first frame images and obtain the corresponding ring of each first frame image Border brightness value;
Object brightness section is determined according to the corresponding multiple ambient brightness values of the multiple first frame image;
At least one second frame image is determined according to the object brightness section;
Target image is generated according at least one described second frame image.
Further, when triggering photographing instruction, continuous multiple first frame images is obtained and obtain each first frame figure As corresponding ambient brightness value, comprising:
Ambient brightness rate of change is detected in preview phase;
If the ambient brightness rate of change is greater than scheduled rate threshold value, when triggering photographing instruction, obtain continuous Multiple first frame images and obtain the corresponding ambient brightness value of each first frame image.
Further, ambient brightness rate of change is detected in preview phase, comprising:
According to the storage second environment brightness value that detection time window rolls, the second environment brightness value is the time The corresponding ambient brightness value of window;
Ambient brightness rate of change is determined according to the second environment brightness value.
It is further, described to detect ambient brightness rate of change in preview phase, comprising:
Obtain multiple third frame images of preview phase;
Ambient brightness rate of change is determined according to the luminance information of the third frame image.
Further, described to determine object brightness area according to the corresponding multiple ambient brightness values of the multiple first frame image Between, comprising:
At least one first brightness section is determined according to the corresponding multiple ambient brightness values of the multiple first frame image;
Object brightness section is determined according to first brightness section.
Further, described to determine object brightness area according to the corresponding multiple ambient brightness values of the multiple first frame image Between, comprising:
Obtain current scene information;
Target is determined according to the current scene information and the corresponding multiple ambient brightness values of the multiple first frame image Brightness section.
Further, described at least one second frame image according to generates target image, comprising:
The second frame image is split, subgraph is obtained;
Target subgraph is determined according to the quality score of the subgraph;
Target image is generated according to the target subgraph.
The embodiment of the present application also provides a kind of storage medium comprising terminal device executable instruction, and the terminal device can It executes instruction when being executed by terminal device processor for executing a kind of image white balance calibration method, this method comprises:
When triggering photographing instruction, obtains continuous multiple first frame images and obtain the corresponding ring of each first frame image Border brightness value;
Object brightness section is determined according to the corresponding multiple ambient brightness values of the multiple first frame image;
At least one second frame image is determined according to the object brightness section;
Target image is generated according at least one described second frame image.
Further, when triggering photographing instruction, continuous multiple first frame images is obtained and obtain each first frame figure As corresponding ambient brightness value, comprising:
Ambient brightness rate of change is detected in preview phase;
If the ambient brightness rate of change is greater than scheduled rate threshold value, when triggering photographing instruction, obtain continuous Multiple first frame images and obtain the corresponding ambient brightness value of each first frame image.
Further, ambient brightness rate of change is detected in preview phase, comprising:
According to the storage second environment brightness value that detection time window rolls, the second environment brightness value is the time The corresponding ambient brightness value of window;
Ambient brightness rate of change is determined according to the second environment brightness value.
It is further, described to detect ambient brightness rate of change in preview phase, comprising:
Obtain multiple third frame images of preview phase;
Ambient brightness rate of change is determined according to the luminance information of the third frame image.
Further, described to determine object brightness area according to the corresponding multiple ambient brightness values of the multiple first frame image Between, comprising:
At least one first brightness section is determined according to the corresponding multiple ambient brightness values of the multiple first frame image;
Object brightness section is determined according to first brightness section.
Further, described to determine object brightness area according to the corresponding multiple ambient brightness values of the multiple first frame image Between, comprising:
Obtain current scene information;
Target is determined according to the current scene information and the corresponding multiple ambient brightness values of the multiple first frame image Brightness section.
Further, described at least one second frame image according to generates target image, comprising:
The second frame image is split, subgraph is obtained;
Target subgraph is determined according to the quality score of the subgraph;
Target image is generated according to the target subgraph.
The computer storage medium of the embodiment of the present application, can be using any of one or more computer-readable media Combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.It is computer-readable Storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or Device, or any above combination.The more specific example (non exhaustive list) of computer readable storage medium includes: tool There are electrical connection, the portable computer diskette, hard disk, random access memory (RAM), read-only memory of one or more conducting wires (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD- ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable storage Medium can be any tangible medium for including or store program, which can be commanded execution system, device or device Using or it is in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited In wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
Can with one or more programming languages or combinations thereof come write for execute the application operation computer Program code, programming language include object oriented program language-such as Java, Smalltalk, C++, are also wrapped Include conventional procedural programming language-such as " C " language or similar programming language.Program code can be complete Ground executes on the user computer, partly executes on the user computer, executing as an independent software package, partially existing Part executes on the remote computer or executes on a remote computer or server completely on subscriber computer.It is being related to In the situation of remote computer, remote computer can pass through the network of any kind --- including local area network (LAN) or wide area Net (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as utilize ISP To be connected by internet).
Certainly, a kind of storage medium comprising computer executable instructions, computer provided by the embodiment of the present application Operation is recommended in the application that executable instruction is not limited to the described above, and can also be performed and is based on provided by the application any embodiment Relevant operation in the photographic method of ambient brightness.
Note that above are only the preferred embodiment and institute's application technology principle of the application.It will be appreciated by those skilled in the art that The application is not limited to specific embodiment described here, be able to carry out for a person skilled in the art it is various it is apparent variation, The protection scope readjusted and substituted without departing from the application.Therefore, although being carried out by above embodiments to the application It is described in further detail, but the application is not limited only to above embodiments, in the case where not departing from the application design, also It may include more other equivalent embodiments, and scope of the present application is determined by the scope of the appended claims.

Claims (10)

1. a kind of photographic method based on ambient brightness characterized by comprising
When triggering photographing instruction, obtains continuous multiple first frame images and to obtain the corresponding environment of each first frame image bright Angle value;
Object brightness section is determined according to the corresponding multiple ambient brightness values of the multiple first frame image;
At least one second frame image is determined according to the object brightness section;
Target image is generated according at least one described second frame image.
2. the photographic method according to claim 1 based on ambient brightness, which is characterized in that when triggering photographing instruction, It obtains continuous multiple first frame images and obtains the corresponding ambient brightness value of each first frame image, comprising:
Ambient brightness rate of change is detected in preview phase;
If the ambient brightness rate of change is greater than scheduled rate threshold value, when triggering photographing instruction, obtain continuous more A first frame image simultaneously obtains the corresponding ambient brightness value of each first frame image.
3. the photographic method according to claim 2 based on ambient brightness, which is characterized in that detect environment in preview phase Brightness change rate, comprising:
According to the storage second environment brightness value that detection time window rolls, the second environment brightness value is the time window Corresponding ambient brightness value;
Ambient brightness rate of change is determined according to the second environment brightness value.
4. the photographic method according to claim 2 based on ambient brightness, which is characterized in that described to be detected in preview phase Ambient brightness rate of change, comprising:
Obtain multiple third frame images of preview phase;
Ambient brightness rate of change is determined according to the luminance information of the third frame image.
5. the photographic method according to claim 1 based on ambient brightness, which is characterized in that described according to the multiple The corresponding multiple ambient brightness values of one frame image determine object brightness section, comprising:
At least one first brightness section is determined according to the corresponding multiple ambient brightness values of the multiple first frame image;
Object brightness section is determined according to first brightness section.
6. the photographic method according to claim 1 based on ambient brightness, which is characterized in that described according to the multiple The corresponding multiple ambient brightness values of one frame image determine object brightness section, comprising:
Obtain current scene information;
Object brightness is determined according to the current scene information and the corresponding multiple ambient brightness values of the multiple first frame image Section.
7. the photographic method according to claim 1 to 6 based on ambient brightness, which is characterized in that the basis At least one described second frame image generates target image, comprising:
The second frame image is split, subgraph is obtained;
Target subgraph is determined according to the quality score of the subgraph;
Target image is generated according to the target subgraph.
8. a kind of camera arrangement based on ambient brightness characterized by comprising
First frame image collection module, for when triggering photographing instruction, obtaining continuous multiple first frame images and obtaining every The corresponding ambient brightness value of a first frame image;
Brightness section determining module, the multiple first frame image pair for being obtained according to the first frame image collection module The multiple ambient brightness values answered determine object brightness section;
Second frame image determining module, the object brightness section for being determined according to the brightness section determining module determine At least one second frame image;
Generation module generates mesh at least one second frame image according to the second frame image determining module determination Logo image.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor The photographic method based on ambient brightness as described in any in claim 1-7 is realized when row.
10. a kind of mobile terminal, which is characterized in that including memory, processor and storage are on a memory and can be in processor The computer program of operation, the processor realize base as claimed in claim 1 when executing the computer program In the photographic method of ambient brightness.
CN201811236728.9A 2018-10-23 2018-10-23 Photographing method and device based on ambient brightness, storage medium and mobile terminal Active CN109218620B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811236728.9A CN109218620B (en) 2018-10-23 2018-10-23 Photographing method and device based on ambient brightness, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811236728.9A CN109218620B (en) 2018-10-23 2018-10-23 Photographing method and device based on ambient brightness, storage medium and mobile terminal

Publications (2)

Publication Number Publication Date
CN109218620A true CN109218620A (en) 2019-01-15
CN109218620B CN109218620B (en) 2021-08-27

Family

ID=64979746

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811236728.9A Active CN109218620B (en) 2018-10-23 2018-10-23 Photographing method and device based on ambient brightness, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN109218620B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113568688A (en) * 2020-04-29 2021-10-29 RealMe重庆移动通信有限公司 View switching method and device, electronic equipment and storage medium
CN113824875A (en) * 2021-08-11 2021-12-21 北京京仪仪器仪表研究总院有限公司 Fruit and vegetable shooting method based on modulated light source brightness interval and shooting interval

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104917976A (en) * 2015-06-05 2015-09-16 北京大恒图像视觉有限公司 Camera automatic shutter and automatic gain adjustment method
CN105227858A (en) * 2015-10-30 2016-01-06 维沃移动通信有限公司 A kind of image processing method and mobile terminal
CN106162136A (en) * 2016-08-12 2016-11-23 惠州Tcl移动通信有限公司 A kind of white balance calibration method, system and mobile terminal for infrared shooting
US20170019579A1 (en) * 2015-07-13 2017-01-19 Olympus Corporation Image processing apparatus and image processing method
CN106534660A (en) * 2015-09-11 2017-03-22 深圳中集天达空港设备有限公司 Self-adaptive image shooting method and self-adaptive image shooting device
CN106713778A (en) * 2016-12-28 2017-05-24 上海兴芯微电子科技有限公司 Exposure control method and device
CN108683857A (en) * 2018-08-16 2018-10-19 Oppo广东移动通信有限公司 It takes pictures optimization method, device, storage medium and terminal device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104917976A (en) * 2015-06-05 2015-09-16 北京大恒图像视觉有限公司 Camera automatic shutter and automatic gain adjustment method
US20170019579A1 (en) * 2015-07-13 2017-01-19 Olympus Corporation Image processing apparatus and image processing method
CN106534660A (en) * 2015-09-11 2017-03-22 深圳中集天达空港设备有限公司 Self-adaptive image shooting method and self-adaptive image shooting device
CN105227858A (en) * 2015-10-30 2016-01-06 维沃移动通信有限公司 A kind of image processing method and mobile terminal
CN106162136A (en) * 2016-08-12 2016-11-23 惠州Tcl移动通信有限公司 A kind of white balance calibration method, system and mobile terminal for infrared shooting
CN106713778A (en) * 2016-12-28 2017-05-24 上海兴芯微电子科技有限公司 Exposure control method and device
CN108683857A (en) * 2018-08-16 2018-10-19 Oppo广东移动通信有限公司 It takes pictures optimization method, device, storage medium and terminal device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113568688A (en) * 2020-04-29 2021-10-29 RealMe重庆移动通信有限公司 View switching method and device, electronic equipment and storage medium
CN113568688B (en) * 2020-04-29 2023-06-06 RealMe重庆移动通信有限公司 View switching method and device, electronic equipment and storage medium
CN113824875A (en) * 2021-08-11 2021-12-21 北京京仪仪器仪表研究总院有限公司 Fruit and vegetable shooting method based on modulated light source brightness interval and shooting interval

Also Published As

Publication number Publication date
CN109218620B (en) 2021-08-27

Similar Documents

Publication Publication Date Title
CN107205125B (en) A kind of image processing method, device, terminal and computer readable storage medium
CN108307125B (en) Image acquisition method, device and storage medium
CN109327691B (en) Image shooting method and device, storage medium and mobile terminal
CN109348135A (en) Photographic method, device, storage medium and terminal device
CN108566516A (en) Image processing method, device, storage medium and mobile terminal
CN109040523B (en) Artifact eliminating method and device, storage medium and terminal
CN109167893A (en) Shoot processing method, device, storage medium and the mobile terminal of image
KR20180099026A (en) Photographing method using external electronic device and electronic device supporting the same
CN109040524B (en) Artifact eliminating method and device, storage medium and terminal
CN109814775B (en) Menu item adjusting method and device and terminal
CN108668086A (en) Atomatic focusing method, device, storage medium and terminal
CN113038165B (en) Method, apparatus and storage medium for determining encoding parameter set
CN109218626A (en) A kind of photographic method and terminal
CN111836069A (en) Virtual gift presenting method, device, terminal, server and storage medium
CN107343143A (en) A kind of image processing method, device, terminal and computer-readable recording medium
CN108881875A (en) Image white balancing treatment method, device, storage medium and terminal
CN108665510B (en) Rendering method and device of continuous shooting image, storage medium and terminal
CN110213484A (en) A kind of photographic method, terminal device and computer readable storage medium
CN109218621A (en) Image processing method, device, storage medium and mobile terminal
CN114302088A (en) Frame rate adjusting method and device, electronic equipment and storage medium
CN109218620A (en) Photographic method, device, storage medium and mobile terminal based on ambient brightness
CN109561291A (en) Color temperature compensating method, device, storage medium and mobile terminal
CN110675473A (en) Method, device, electronic equipment and medium for generating GIF dynamic graph
CN112950525A (en) Image detection method and device and electronic equipment
CN109120864A (en) Light filling processing method, device, storage medium and mobile terminal

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