CN109286758A - A kind of generation method of high dynamic range images, mobile terminal and storage medium - Google Patents

A kind of generation method of high dynamic range images, mobile terminal and storage medium Download PDF

Info

Publication number
CN109286758A
CN109286758A CN201811195806.5A CN201811195806A CN109286758A CN 109286758 A CN109286758 A CN 109286758A CN 201811195806 A CN201811195806 A CN 201811195806A CN 109286758 A CN109286758 A CN 109286758A
Authority
CN
China
Prior art keywords
time
exposure
moving object
image
dynamic range
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
CN201811195806.5A
Other languages
Chinese (zh)
Other versions
CN109286758B (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 CN201811195806.5A priority Critical patent/CN109286758B/en
Publication of CN109286758A publication Critical patent/CN109286758A/en
Application granted granted Critical
Publication of CN109286758B publication Critical patent/CN109286758B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/73Circuitry for compensating brightness variation in the scene by influencing the exposure time
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/57Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • 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/741Circuitry 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/265Mixing

Landscapes

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

Abstract

The application is suitable for technical field of image processing, provide a kind of generation method of high dynamic range images, mobile terminal and computer readable storage medium, the described method includes: determining the movement velocity of moving object in the preview screen of the camera acquisition of mobile terminal, time for exposure set is obtained according to the movement velocity of the moving object, the time for exposure set included at least two time for exposure, the camera for controlling the mobile terminal acquires image based on each time for exposure in time for exposure set, obtain image corresponding with the time for exposure each in time for exposure set, image corresponding with the time for exposure each in time for exposure set is synthesized, obtain high dynamic range images, the phenomenon that local objects soft edge in high dynamic range images can be improved by the application.

Description

A kind of generation method of high dynamic range images, mobile terminal and storage medium
Technical field
The application belongs to technical field of image processing more particularly to a kind of generation method of high dynamic range images, movement Terminal and computer readable storage medium.
Background technique
High dynamic range images (High-Dynamic Range, abbreviation HDR), compared to common image, can provide more More dynamic ranges and image detail, according to LDR (Low-Dynamic Range) image of different time for exposure, using every The LDR image of a time for exposure corresponding best details synthesizes final HDR image, can preferably reflect in people's true environment Visual effect.
Currently, the high dynamic range images obtained after the image that multiple and different time for exposure shoot is synthesized, although can Obtain more details;However, often there is the problem of local objects soft edge.Therefore, the high dynamic range shot at present The effect of image is poor.
Summary of the invention
In view of this, the embodiment of the present application provides generation method, mobile terminal and the meter of a kind of high dynamic range images Calculation machine readable storage medium storing program for executing often occurs that local objects soft edge, effect are poor to ask to solve current high dynamic range images Topic.
The first aspect of the embodiment of the present application provides a kind of generation method of high dynamic range images, comprising:
Determine the movement velocity of moving object in the preview screen of the camera acquisition of mobile terminal;
Time for exposure set is obtained according to the movement velocity of the moving object, the time for exposure set includes at least two A time for exposure;
The camera for controlling the mobile terminal acquires image based on each time for exposure in time for exposure set, Obtain image corresponding with the time for exposure each in time for exposure set;
Image corresponding with the time for exposure each in time for exposure set is synthesized, high dynamic range figure is obtained Picture.
The second aspect of the embodiment of the present application provides a kind of mobile terminal, comprising:
Movement velocity determination unit, for determine mobile terminal camera acquire preview screen in moving object fortune Dynamic speed;
Time for exposure obtaining unit, it is described for obtaining time for exposure set according to the movement velocity of the moving object Time for exposure set included at least two time for exposure;
Image acquisition units each of are gathered for controlling the camera of the mobile terminal based on the time for exposure Time for exposure acquires image, obtains image corresponding with the time for exposure each in time for exposure set;
Image composing unit, for closing image corresponding with the time for exposure each in time for exposure set At acquisition high dynamic range images.
The third aspect of the embodiment of the present application provides a kind of mobile terminal, including memory, processor and is stored in In the memory and the computer program that can run on the processor, when the processor executes the computer program The step of realizing the method that the embodiment of the present application first aspect provides.
The fourth aspect of the embodiment of the present application provides a kind of computer readable storage medium, the computer-readable storage Media storage has computer program, and the computer program realizes the embodiment of the present application when being executed by one or more processors On the one hand the step of the method provided.
5th aspect of the embodiment of the present application provides a kind of computer program product, and the computer program product includes Computer program, the computer program realize that the embodiment of the present application first aspect provides when being executed by one or more processors The method the step of.
The embodiment of the present application provides a kind of generation method of high dynamic range images, is adopted by the camera of mobile terminal The movement velocity of moving object determines multiple time for exposure in the preview screen of collection, then, controls the camera shooting of the mobile terminal Head acquires image based on each time for exposure in time for exposure set, obtains and each exposure in time for exposure set Image corresponding with the time for exposure each in time for exposure set is synthesized, is obtained by corresponding image between the light time High dynamic range images, due to by movement velocity determine multiple time for exposure, can setting by the time for exposure It sets acquisition moving object region and compares clearly image, the image of multiple details is then obtained by multiple time for exposure, The high dynamic range images synthesized in this way just can be avoided the unclear phenomenon of local objects profile.
Detailed description of the invention
It in order to more clearly explain the technical solutions in the embodiments of the present application, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only some of the application Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is a kind of implementation process schematic diagram of the generation method of high dynamic range images provided by the embodiments of the present application;
Fig. 2 is the implementation process signal of the generation method of another high dynamic range images provided by the embodiments of the present application Figure;
Fig. 3 is the implementation process signal of the generation method of another high dynamic range images provided by the embodiments of the present application Figure;
Fig. 4 is a kind of schematic block diagram of mobile terminal provided by the embodiments of the present application;
Fig. 5 is the schematic block diagram of another mobile terminal provided by the embodiments of the present application.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed Body details, so as to provide a thorough understanding of the present application embodiment.However, it will be clear to one skilled in the art that there is no these specific The application also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity The detailed description of road and method, so as not to obscure the description of the present application with unnecessary details.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " instruction is described special Sign, entirety, step, operation, the presence of element and/or component, but be not precluded one or more of the other feature, entirety, step, Operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this present specification merely for the sake of description specific embodiment And be not intended to limit the application.As present specification and it is used in the attached claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in present specification and the appended claims is Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt Be construed to " when ... " or " once " or " in response to determination " or " in response to detecting ".Similarly, phrase " if it is determined that " or " if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In order to illustrate technical solution described herein, the following is a description of specific embodiments.
Fig. 1 is a kind of implementation process schematic diagram of the generation method of high dynamic range images provided by the embodiments of the present application, As shown, this method may comprise steps of:
Step S101 determines the movement velocity of moving object in the preview screen of the camera acquisition of mobile terminal.
In the embodiment of the present application, the mobile terminal camera acquisition preview screen be also one by one, When determining that mobile terminal needs to acquire high dynamic range images, it can be determined in real time under the mode of high dynamic range images The movement velocity of moving object in the preview screen that the camera of mobile terminal currently acquires can also receive photographing instruction Afterwards, then the movement velocity of moving object in the preview screen that currently acquires of camera of mobile terminal is determined.
When being taken pictures, user's hand-held mobile terminal control mobile terminal it is static, then can just click shoot button or Button to take pictures, so, mobile terminal will be normally at a relatively static state when taking pictures, at this moment, if There is no moving object, the difference between continuous two frames preview screen should be smaller, if there is moving object, and moving object The movement velocity of body is faster, and the difference between two continuous frames preview screen should be bigger.It therefore, can be current by mobile terminal 1 frame or the continuous preview screen of multiframe before the preview screen of acquisition and the preview screen currently acquired determine mobile terminal In moving object and the moving object movement velocity.As an example, the preview screen and former frame currently acquired is obtained Preview screen, and the differential image for calculating two frame preview screens determines moving object region according to the differential image, Time difference when according to two frame preview screen of the distribution for the pixel having differences in differential image and acquisition determines fortune The movement velocity of animal body.Movement velocity can not be specific value, can be different movement velocity grade, for example, according to The distribution of the pixel having differences in differential image delimit a region, according to the area in the region be in acquisition when Between difference obtain value determine movement velocity grade.
Step S102 obtains time for exposure set, the time for exposure set according to the movement velocity of the moving object Including at least two time for exposure.
In the embodiment of the present application, different movement velocity or the corresponding exposure of movement velocity grade can be preset Time set, after movement velocity or movement velocity grade has been determined, so that it may when inquiring corresponding exposure in the database Between gather.It include at least one short exposure time in time for exposure set, because when usual short exposure when movement velocity is higher Between can obtain the relatively clearly image of moving object, the more details of moving object can be obtained, it will be able to reduce The fuzziness of moving region in the image of acquisition.In addition, the image for acquisition can embody more details, can also be arranged Multiple and different time for exposure finally again synthesizes the corresponding image of different exposure time, obtains high dynamic range images.
Step S103 controls the camera of the mobile terminal based on each time for exposure in time for exposure set Image is acquired, image corresponding with the time for exposure each in time for exposure set is obtained.
Image corresponding with the time for exposure each in time for exposure set is synthesized, is obtained high by step S104 Dynamic image.
In the embodiment of the present application, even if containing the corresponding image of multiple short exposure times, however, since user shoots The other factors such as process hand shaking may cause in the image finally obtained there are the image that moving object region is fuzzyyer, In this way, the high dynamic range images finally synthesized, which may can also have fuzzy or moving object boundary, has " slur " etc. now As.Therefore, the fuzzyyer image in some moving object regions can be rejected, then by remaining image before synthesis It is synthesized.It is fuzzy several due to existing there are when moving object, in constant exposure time and corresponding image of long time for exposure Rate is very big, and constant exposure time and corresponding image of long time for exposure are not intended to obtain moving object region Details, but the details in other regions other than moving object is obtained, therefore, can will be less than time threshold (can set in advance Set acquisition preview screen when time for exposure as time threshold) time for exposure corresponding image in moving region fuzziness Greater than the image-erasing of Fuzzy Threshold, i.e., the rejecting that will be obscured in the corresponding image of short exposure time synthesizes remaining image Obtain high dynamic range images.
As the another embodiment of the application, it is described will with the time for exposure gather in each time for exposure it is corresponding Image synthesis, obtaining high dynamic range images includes:
Judge minimum exposure time and the corresponding figure of the intermediate exposure period described in the time for exposure set It is greater than the image of threshold value with the presence or absence of the fuzziness of moving object region as in;
The fuzziness of moving object region is greater than the image of threshold value if it exists, then by the mould of moving object region The image that paste degree is greater than threshold value abandons, and remaining image is synthesized and obtains high dynamic range images.
In the embodiment of the present application, the minimum exposure time is the minimum exposure time in time for exposure set, The intermediate exposure period is except minimum exposure time described in time for exposure set and the maximum exposure time Other time for exposure.Can by order to obtain the details of moving object corresponding image of shorter time for exposure in moving object The image that the fuzziness of region is greater than threshold value abandons, by remaining synthesis, it should be noted that when being also possible to expose Between lesser preset quantity image in moving object region fuzziness be greater than threshold value image remove, for example, removal The fuzziness of moving object region is greater than the image of threshold value in time for exposure the smallest two images.
The embodiment of the present application therefore can setting by the time for exposure by multiple time for exposure that movement velocity determines It sets acquisition moving object region and compares clearly image, the image of multiple details is then obtained by multiple time for exposure, The high dynamic range images synthesized in this way just can be avoided the unclear phenomenon of local objects profile.
Fig. 2 is the implementation process signal of the generation method of another high dynamic range images provided by the embodiments of the present application Figure, as shown, on the basis of this method embodiment shown in Fig. 1, it is described how determine the camera acquisition of mobile terminal Preview screen in moving object movement velocity, this method may comprise steps of:
N frame before step S201, the preview screen currently acquired based on the camera and the preview screen currently acquired Continuous preview screen determines the moving object in preview screen that the camera currently acquires.
In the embodiment of the present application, when calculating the moving object in the preview screen currently acquired, from what is currently acquired The two frame preview screens (preview screen for being also possible to and currently acquiring is chosen in the preceding continuous preview screen of N frame of preview screen The immediate two frames preview screen of acquisition time), and calculate two frame preview screens of selection respectively with present frame preview screen Difference, obtain two error images, binary conversion treatment then carried out respectively to two error images, obtain two binary pictures Picture, and the intersection area of the target area of two binary images is calculated, obtain the moving object of current frame image.
As an example, present frame preview screen is Hn, choose preview screen Hn-1With preview screen Hn-2, above-mentioned three frames preview Picture is gray level image, calculates Hn-1And HnDifference and Hn-2And HnDifference obtain Tn-(n-1)And Tn-(n-2), to Tn-(n-1) And Tn-(n-2)Binary conversion treatment is carried out, H is foundn-1And HnDiff area (region of black or white, also referred to as target area Domain) and Hn-2And HnDiff area (region of black or white, also referred to as target area), calculate two binary pictures The intersection area (common region in the diff area of two binary images) of the diff area of picture, obtains current frame image Region where moving object, then in region of the region where moving object where in the preview screen currently acquired just It is moving object.After determining moving object, so that it may determine the movement velocity of moving object.
At this it is to be appreciated that the movement velocity in the embodiment of the present application, which is not, indicates the movement velocity of actual object, and It is the speed of image shift position in preview screen of certain objects in preview screen.Identical situation of usual time for exposure Under, fuzzyyer speed of moving body higher grade in preview screen, and the boundary of fuzzyyer moving object is more unintelligible.Cause This, can first obtain the fuzziness of the moving object region in the preview screen that the camera currently acquires, further according to Fuzziness determines the movement velocity grade of moving object.
Step S202 calculates the gray value of each pixel on the contour line of the moving object region respectively First gradient changing value on one direction, and calculate the gray scale of each pixel on the contour line of the moving object region The the second change of gradient value of value respectively in a second direction, the first direction and the second direction are vertical.
Step S203 calculates the data feature values of the first gradient changing value and the second change of gradient value, and root The fuzziness of the moving object region is obtained according to the data feature values.
In the embodiment of the present application, after moving object has determined, the contour line of moving object is also just true in preview screen It is fixed, then the gray value of each pixel on the contour line of the moving object region can be calculated respectively in level side Upward first gradient changing value (the corresponding first gradient changing value of each pixel), and calculate the moving object place Second change of gradient value (each pixel pair of the gray value of each pixel respectively in the vertical direction on the contour line in region Answer a second change of gradient value), in practice, a direction can also be only set, both direction, and two sides also can be set To vertical, multiple directions can also be set.Then twice of number of change of gradient value for obtaining pixel is calculating these ladders Spend the data feature values (such as average value etc.) of changing value (first gradient changing value and the second change of gradient value), data feature values Bigger (indicating that change of gradient is bigger), then boundary is more clear, and fuzziness is also lower.The i.e. described data feature values and the movement The fuzziness of object region is inversely proportional.Fuzziness can be specific value, be also possible to grade.
Step S204 according to the fuzziness of moving object region in the preview screen currently acquired and is currently acquired The time for exposure of preview screen determines the movement velocity of the moving object.
In the embodiment of the present application, the grade of the movement velocity or movement velocity of moving object is in addition to where with moving object The fuzziness in region is related, also related with time for exposure when acquisition current preview picture, currently acquires therefore, it is necessary to basis The time for exposure of the fuzziness of moving object region and the preview screen currently acquired determines the movement in preview screen The movement velocity of object can preset the corresponding relationship of three, can be in the case where determining fuzziness and time for exposure Pass through the grade of the table look-up movement velocity or movement velocity that obtain moving object.
Fig. 3 is the implementation process signal of the generation method of another high dynamic range images provided by the embodiments of the present application Figure, as shown, on the basis of this method embodiment shown in Fig. 1, it is described how according to the movement of moving object speed Degree obtains time for exposure set, and this method may comprise steps of:
Step S301, when determining the minimum exposure in the time for exposure set according to the movement velocity of the moving object Between.
In the embodiment of the present application, the rule that can be inversely proportional based on the movement velocity and the minimum exposure time, The minimum exposure time in the time for exposure set is determined according to the movement velocity of the moving object.For example, moving object Movement velocity it is bigger, then the corresponding minimum exposure time is smaller, and the movement velocity of moving object is smaller, then corresponding minimum to expose It is bigger between light time.
Step S302, the time for exposure when camera is acquired current preview picture gather as the time for exposure In maximum exposure time, the number of the maximum exposure time is one or more.
In the embodiment of the present application, maximum exposure time can will be pre-set, maximum exposure time can be described Camera acquires time for exposure when current preview picture, when being also possible to greater than camera acquisition current preview picture The time of time for exposure.
Step S303 is generated in the time for exposure set according to the minimum exposure time and the maximum exposure time Intermediate exposure period, the intermediate exposure period be the time for exposure set described in minimum exposure time and the maximum Time for exposure except time for exposure.
In the embodiment of the present application, after minimum exposure time and maximum exposure time has been determined, so that it may in determining Between the time for exposure, the exposure can be determined according to the number or the step-length of preset time for exposure of pre-set time for exposure Intermediate exposure period between light time in set.It should be noted that allow in time for exposure set there are the identical time for exposure, For example, the number of maximum exposure time can be two, the number of some intermediate exposure period is also possible to multiple.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present application constitutes any limit It is fixed.
Fig. 4 is that the schematic block diagram for the mobile terminal that one embodiment of the application provides only is shown and this Shen for ease of description It please the relevant part of embodiment.
The mobile terminal 4 can be the software unit being built in the mobile terminals such as mobile phone, tablet computer, notebook, hard Part unit or the unit of soft or hard combination can also be used as independent pendant and be integrated into the mobile phone, tablet computer, notebook etc. In mobile terminal.
The mobile terminal 4 includes:
Movement velocity determination unit 41, for determining moving object in preview screen that the camera of mobile terminal acquires Movement velocity;
Time for exposure obtaining unit 42, for obtaining time for exposure set, institute according to the movement velocity of the moving object Stating time for exposure set included at least two time for exposure;
Image acquisition units 43, for controlling the camera of the mobile terminal based on every in time for exposure set A time for exposure acquires image, obtains image corresponding with the time for exposure each in time for exposure set;
Image composing unit 44, for closing image corresponding with the time for exposure each in time for exposure set At acquisition high dynamic range images.
Optionally, the movement velocity determination unit 41 includes:
Moving object determining module 411, preview screen for currently being acquired based on the camera and is currently acquired The continuous preview screen of N frame before preview screen determines the moving object in preview screen that the camera currently acquires;
Fuzziness obtains module 412, for obtaining the moving object institute in the preview screen that the camera currently acquires Fuzziness in region;
Movement velocity determining module 413, for the mould according to moving object region in the preview screen currently acquired The time for exposure of paste degree and the preview screen currently acquired determines the movement velocity of the moving object.
Optionally, the fuzziness obtains module 412 and is also used to:
Calculate the gray value difference of each pixel on the contour line of the moving object region in a first direction First gradient changing value, and the gray value for calculating each pixel on the contour line of the moving object region exists respectively The second change of gradient value in second direction, the first direction and the second direction are vertical;
The data feature values of the first gradient changing value and the second change of gradient value are calculated, and according to the data Characteristic value obtains the fuzziness of the moving object region.
Optionally, the time for exposure obtaining unit 42 includes:
The minimum exposure time obtains module 421, when for determining the exposure according to the movement velocity of the moving object Between set in the minimum exposure time;
Maximum exposure time obtains module 422, for the camera to be acquired to time for exposure when current preview picture As the maximum exposure time in time for exposure set, the number of the maximum exposure time is one or more;
Intermediate exposure period determining module 423, for raw according to the minimum exposure time and the maximum exposure time At the time for exposure set in intermediate exposure period, the intermediate exposure period be the time for exposure set described in most Time for exposure except small time for exposure and the maximum exposure time.
Optionally, the minimum exposure time obtains module 421 and is also used to:
Based on the rule that the movement velocity and the minimum exposure time are inversely proportional, according to the movement of the moving object Speed determines the minimum exposure time in the time for exposure set.
Optionally, the intermediate exposure period determining module 423 is also used to:
Based on the time for exposure set in the preset time for exposure number or the step-length of preset time for exposure, determine described in Intermediate exposure period in time for exposure set.
Optionally, described image synthesis unit 44 includes:
Judgment module 441, for judging minimum exposure time and the intermediate exposures described in the time for exposure set It is greater than the image of threshold value in time corresponding image with the presence or absence of the fuzziness of moving object region;
Image synthesis module 442 is greater than the image of threshold value for the fuzziness of moving object region if it exists, then will The image that the fuzziness of moving object region is greater than threshold value abandons, and remaining image is synthesized and obtains high dynamic range figure Picture.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of the mobile terminal is divided into different functional unit or module, to complete All or part of function described above.Each functional unit in embodiment, module can integrate in one processing unit, It is also possible to each unit to physically exist alone, can also be integrated in one unit with two or more units, above-mentioned collection At unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function Unit, module specific name be also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above-mentioned shifting The specific work process for moving unit in terminal, module, can refer to corresponding processes in the foregoing method embodiment, no longer superfluous herein It states.
Fig. 5 is the schematic block diagram for the mobile terminal that the another embodiment of the application provides.As shown in figure 5, the shifting of the embodiment Dynamic terminal 5 includes: one or more processors 50, memory 51 and is stored in the memory 51 and can be in the processing The computer program 52 run on device 50.The processor 50 realizes that above-mentioned each method is real when executing the computer program 52 Apply the step in example, such as step S101 to S104 shown in FIG. 1.Alternatively, the processor 50 executes the computer program The function of each module/unit in above-mentioned mobile terminal embodiment, such as the function of module 41 to 44 shown in Fig. 4 are realized when 52.
Illustratively, the computer program 52 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 51, and are executed by the processor 50, to complete the application.Described one A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for Implementation procedure of the computer program 52 in the mobile terminal 5 is described.For example, the computer program 52 can be divided It is cut into movement velocity determination unit, time for exposure obtaining unit, image acquisition units, image composing unit.
Movement velocity determination unit, for determine mobile terminal camera acquire preview screen in moving object fortune Dynamic speed;
Time for exposure obtaining unit, it is described for obtaining time for exposure set according to the movement velocity of the moving object Time for exposure set included at least two time for exposure;
Image acquisition units each of are gathered for controlling the camera of the mobile terminal based on the time for exposure Time for exposure acquires image, obtains image corresponding with the time for exposure each in time for exposure set;
Image composing unit, for closing image corresponding with the time for exposure each in time for exposure set At acquisition high dynamic range images.
Other units or module can refer to the description in embodiment shown in Fig. 4, and details are not described herein.
The mobile terminal includes but are not limited to processor 50, memory 51.It will be understood by those skilled in the art that figure 5 be only an example of mobile terminal 5, does not constitute the restriction to mobile terminal 5, may include more more or less than illustrating Component, perhaps combine certain components or different components, for example, the mobile terminal can also include input equipment, it is defeated Equipment, network access equipment, bus etc. out.
The processor 50 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific 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 etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
The memory 51 can be the internal storage unit of the mobile terminal 5, such as the hard disk or interior of mobile terminal 5 It deposits.The memory 51 is also possible to the External memory equipment of the mobile terminal 5, such as be equipped on the mobile terminal 5 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge Deposit card (Flash Card) etc..Further, the memory 51 can also both include the storage inside list of the mobile terminal 5 Member also includes External memory equipment.The memory 51 is for storing needed for the computer program and the mobile terminal Other programs and data.The memory 51 can be also used for temporarily storing the data that has exported or will export.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed Scope of the present application.
In embodiment provided herein, it should be understood that disclosed mobile terminal and method can pass through it Its mode is realized.For example, mobile terminal embodiment described above is only schematical, for example, the module or list Member division, only a kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or Component can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point is shown The mutual coupling or direct-coupling or communication connection shown or discussed can be through some interfaces, between device or unit Coupling or communication connection are connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or In use, can store in a computer readable storage medium.Based on this understanding, the application realizes above-mentioned implementation All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium It may include: any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic that can carry the computer program code Dish, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described The content that computer-readable medium includes can carry out increasing appropriate according to the requirement made laws in jurisdiction with patent practice Subtract, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium do not include be electric carrier signal and Telecommunication signal.
Embodiment described above is only to illustrate the technical solution of the application, rather than its limitations;Although referring to aforementioned reality Example is applied the application is described in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution should all Comprising within the scope of protection of this application.

Claims (10)

1. a kind of generation method of high dynamic range images characterized by comprising
Determine the movement velocity of moving object in the preview screen of the camera acquisition of mobile terminal;
Time for exposure set is obtained according to the movement velocity of the moving object, the time for exposure set includes at least two exposures Between light time;
The camera for controlling the mobile terminal acquires image based on each time for exposure in time for exposure set, obtains Image corresponding with the time for exposure each in time for exposure set;
Image corresponding with the time for exposure each in time for exposure set is synthesized, high dynamic range images are obtained.
2. the generation method of high dynamic range images as described in claim 1, which is characterized in that the determining mobile terminal The movement velocity of moving object includes: in the preview screen of camera acquisition
The continuous preview of N frame is drawn before the preview screen currently acquired based on the camera and the preview screen currently acquired Face determines the moving object in preview screen that the camera currently acquires;
Obtain the fuzziness of the moving object region in the preview screen that the camera currently acquires;
The exposure of the preview screen according to the fuzziness of moving object region in the preview screen currently acquired and currently acquired The movement velocity of the moving object is determined between light time.
3. the generation method of high dynamic range images as claimed in claim 2, which is characterized in that described to calculate the camera The fuzziness of moving object region in the preview screen currently acquired includes:
Calculate the of the gray value of each pixel on the contour line of the moving object region respectively in a first direction One change of gradient value, and the gray value of each pixel on the contour line of the moving object region is calculated respectively second The second change of gradient value on direction, the first direction and the second direction are vertical;
The data feature values of the first gradient changing value and the second change of gradient value are calculated, and according to the data characteristics Value obtains the fuzziness of the moving object region.
4. the generation method of high dynamic range images as described in any one of claims 1 to 3, which is characterized in that the basis The movement velocity of the moving object obtains time for exposure set
The minimum exposure time in the time for exposure set is determined according to the movement velocity of the moving object;
Time for exposure when using camera acquisition current preview picture is as the maximum exposure in time for exposure set Time, the number of the maximum exposure time are one or more;
When generating the intermediate exposures in the time for exposure set according to the minimum exposure time and the maximum exposure time Between, the intermediate exposure period is except minimum exposure time described in time for exposure set and the maximum exposure time Time for exposure.
5. the generation method of high dynamic range images as claimed in claim 4, which is characterized in that described according to the moving object The movement velocity of body determines that the minimum exposure time in the time for exposure set includes:
Based on the rule that the movement velocity and the minimum exposure time are inversely proportional, according to the movement velocity of the moving object Determine the minimum exposure time in the time for exposure set.
6. the generation method of high dynamic range images as claimed in claim 4, which is characterized in that described according to the minimum exposure Between light time and intermediate exposure period that the maximum exposure time generates in time for exposure set includes:
Based on the number or the step-length of preset time for exposure of preset time for exposure in time for exposure set, the exposure is determined Intermediate exposure period in time set.
7. such as the generation method of the described in any item high dynamic range images of claim 4 to 6, which is characterized in that it is described will be with Each time for exposure corresponding image synthesis in time for exposure set, obtaining high dynamic range images includes:
Judge in the minimum exposure time and the corresponding image of the intermediate exposure period described in the time for exposure set It is greater than the image of threshold value with the presence or absence of the fuzziness of moving object region;
The fuzziness of moving object region is greater than the image of threshold value if it exists, then by the fuzziness of moving object region Image greater than threshold value abandons, and remaining image is synthesized and obtains high dynamic range images.
8. a kind of mobile terminal characterized by comprising
Movement velocity determination unit, for determine mobile terminal camera acquire preview screen in moving object movement speed Degree;
Time for exposure obtaining unit, for obtaining time for exposure set, the exposure according to the movement velocity of the moving object Time set included at least two time for exposure;
Image acquisition units, for controlling the camera of the mobile terminal based on each exposure in time for exposure set Time acquires image, obtains image corresponding with the time for exposure each in time for exposure set;
Image composing unit is synthesized for time for exposure each in gathering with the time for exposure corresponding image, is obtained Obtain high dynamic range images.
9. a kind of mobile terminal, including memory, processor and storage are in the memory and can be on the processor The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 7 when executing the computer program The step of any one the method.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer journey Sequence realizes the step such as any one of claim 1 to 7 the method when the computer program is executed by one or more processors Suddenly.
CN201811195806.5A 2018-10-15 2018-10-15 High dynamic range image generation method, mobile terminal and storage medium Active CN109286758B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811195806.5A CN109286758B (en) 2018-10-15 2018-10-15 High dynamic range image generation method, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811195806.5A CN109286758B (en) 2018-10-15 2018-10-15 High dynamic range image generation method, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN109286758A true CN109286758A (en) 2019-01-29
CN109286758B CN109286758B (en) 2021-02-12

Family

ID=65176463

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811195806.5A Active CN109286758B (en) 2018-10-15 2018-10-15 High dynamic range image generation method, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN109286758B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110213498A (en) * 2019-05-29 2019-09-06 Oppo广东移动通信有限公司 Image generating method and device, electronic equipment, computer readable storage medium
CN110445989A (en) * 2019-08-05 2019-11-12 Oppo广东移动通信有限公司 Image processing method, device, storage medium and electronic equipment
CN111479072A (en) * 2020-04-14 2020-07-31 深圳市道通智能航空技术有限公司 High dynamic range image synthesis method and device, image processing chip and aerial camera
CN111901525A (en) * 2020-07-29 2020-11-06 西安欧亚学院 Multi-camera artificial intelligence image processing method
CN112437235A (en) * 2020-11-11 2021-03-02 Oppo广东移动通信有限公司 Night scene picture generation method and device and mobile terminal
US12041358B2 (en) 2020-04-14 2024-07-16 Autel Robotics Co., Ltd. High dynamic range image synthesis method and apparatus, image processing chip and aerial camera

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070024627A1 (en) * 2003-06-03 2007-02-01 Koichi Oka Method and system for evaluating moving image quality of displays
CN104660915A (en) * 2015-02-09 2015-05-27 广东欧珀移动通信有限公司 Control method and device for panoramic photography exposure
CN106469433A (en) * 2015-08-19 2017-03-01 奥林巴斯株式会社 Camera head, image capture method
CN107395997A (en) * 2017-08-18 2017-11-24 维沃移动通信有限公司 A kind of image pickup method and mobile terminal
CN107566748A (en) * 2017-09-22 2018-01-09 维沃移动通信有限公司 A kind of image processing method, mobile terminal and computer-readable recording medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070024627A1 (en) * 2003-06-03 2007-02-01 Koichi Oka Method and system for evaluating moving image quality of displays
CN104660915A (en) * 2015-02-09 2015-05-27 广东欧珀移动通信有限公司 Control method and device for panoramic photography exposure
CN106469433A (en) * 2015-08-19 2017-03-01 奥林巴斯株式会社 Camera head, image capture method
CN107395997A (en) * 2017-08-18 2017-11-24 维沃移动通信有限公司 A kind of image pickup method and mobile terminal
CN107566748A (en) * 2017-09-22 2018-01-09 维沃移动通信有限公司 A kind of image processing method, mobile terminal and computer-readable recording medium

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110213498A (en) * 2019-05-29 2019-09-06 Oppo广东移动通信有限公司 Image generating method and device, electronic equipment, computer readable storage medium
CN110213498B (en) * 2019-05-29 2021-04-23 Oppo广东移动通信有限公司 Image generation method and device, electronic equipment and computer readable storage medium
CN110445989A (en) * 2019-08-05 2019-11-12 Oppo广东移动通信有限公司 Image processing method, device, storage medium and electronic equipment
CN110445989B (en) * 2019-08-05 2021-03-23 Oppo广东移动通信有限公司 Image processing method, image processing device, storage medium and electronic equipment
CN111479072A (en) * 2020-04-14 2020-07-31 深圳市道通智能航空技术有限公司 High dynamic range image synthesis method and device, image processing chip and aerial camera
US12041358B2 (en) 2020-04-14 2024-07-16 Autel Robotics Co., Ltd. High dynamic range image synthesis method and apparatus, image processing chip and aerial camera
CN111901525A (en) * 2020-07-29 2020-11-06 西安欧亚学院 Multi-camera artificial intelligence image processing method
CN112437235A (en) * 2020-11-11 2021-03-02 Oppo广东移动通信有限公司 Night scene picture generation method and device and mobile terminal
CN112437235B (en) * 2020-11-11 2022-03-01 Oppo广东移动通信有限公司 Night scene picture generation method and device and mobile terminal

Also Published As

Publication number Publication date
CN109286758B (en) 2021-02-12

Similar Documents

Publication Publication Date Title
CN109286758A (en) A kind of generation method of high dynamic range images, mobile terminal and storage medium
WO2021179820A1 (en) Image processing method and apparatus, storage medium and electronic device
CN111950723B (en) Neural network model training method, image processing method, device and terminal equipment
CN109040603A (en) High-dynamic-range image acquisition method, device and mobile terminal
CN109005367A (en) A kind of generation method of high dynamic range images, mobile terminal and storage medium
CN101095078B (en) Exposure of digital imaging
EP3923234B1 (en) Training method and device for an image enhancement model, and storage medium
AU2013206601A1 (en) Variable blend width compositing
CN109120862A (en) High-dynamic-range image acquisition method, device and mobile terminal
CN112818732B (en) Image processing method, device, computer equipment and storage medium
CN109005368A (en) A kind of generation method of high dynamic range images, mobile terminal and storage medium
CN108924427A (en) A kind of video camera focus method, device and video camera
CN111225162B (en) Image exposure control method, system, readable storage medium and camera equipment
CN111614867B (en) Video denoising method and device, mobile terminal and storage medium
CN108833784A (en) A kind of adaptive patterning process, mobile terminal and computer readable storage medium
CN109151329A (en) Photographic method, device, terminal and computer readable storage medium
CN109040596A (en) A kind of method, mobile terminal and storage medium adjusting camera
CN111985281A (en) Image generation model generation method and device and image generation method and device
CN109214996A (en) A kind of image processing method and device
CN111757100B (en) Method and device for determining camera motion variation, electronic equipment and medium
CN111882578A (en) Foreground image acquisition method, foreground image acquisition device and electronic equipment
CN109040579A (en) A kind of filming control method, terminal and computer-readable medium
CN109697090A (en) A kind of method, terminal device and the storage medium of controlling terminal equipment
CN110689478B (en) Image stylization processing method and device, electronic equipment and readable medium
CN111127367A (en) Method, device and system for processing face image

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