CN108513062A - Control method and device, readable storage medium storing program for executing and the computer equipment of terminal - Google Patents

Control method and device, readable storage medium storing program for executing and the computer equipment of terminal Download PDF

Info

Publication number
CN108513062A
CN108513062A CN201810184571.3A CN201810184571A CN108513062A CN 108513062 A CN108513062 A CN 108513062A CN 201810184571 A CN201810184571 A CN 201810184571A CN 108513062 A CN108513062 A CN 108513062A
Authority
CN
China
Prior art keywords
fuzzy
pixel
exposure
successively
control
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
CN201810184571.3A
Other languages
Chinese (zh)
Other versions
CN108513062B (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 CN201810184571.3A priority Critical patent/CN108513062B/en
Publication of CN108513062A publication Critical patent/CN108513062A/en
Application granted granted Critical
Publication of CN108513062B publication Critical patent/CN108513062B/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/60Control of cameras or camera modules
    • H04N23/667Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes
    • 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/62Control of parameters via user interfaces
    • 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

Landscapes

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

Abstract

The invention discloses a kind of control methods of terminal.Terminal includes display device and imaging device, and control method includes that control imaging device obtains ambient image with current imaging pattern;Multiple Fuzzy Processing ambient image is to generate multiframe blurred picture;Control display device shows multiframe blurred picture to form fuzzy animation successively;It is switched to target imaging mode with by current imaging pattern.The invention also discloses a kind of control device of terminal, non-volatile computer readable storage medium storing program for executing and computer equipments.By showing the multiframe blurred picture formed through Fuzzy Processing by ambient image and forming fuzzy animation so that in the imaging pattern handoff procedure of imaging device, the image switching that display device is shown is milder and beautiful, promotes user experience.

Description

Control method and device, readable storage medium storing program for executing and the computer equipment of terminal
Technical field
The present invention relates to technical field of imaging, more particularly to a kind of control method and device of terminal, non-volatile calculating Machine readable storage medium storing program for executing and computer equipment.
Background technology
User can usually be shot by display device preview by imaging device when shooting image using electronic device Real-time ambient image, and for different environmental parameter or shooting demand, generally require switching imaging device with it is different at As pattern shooting image, and during switching, preview image often shows that completely black picture, handoff procedure seem lofty, user It experiences bad.
Invention content
The embodiment provides a kind of control method and device of terminal, non-volatile readable storage medium and meters Calculate machine equipment.
The control method of the terminal of embodiment of the present invention is used for control terminal, and the terminal includes display device and imaging Device, control method include:
It controls the imaging device and ambient image is obtained with current imaging pattern;
Ambient image is to generate multiframe blurred picture described in multiple Fuzzy Processing;
Control the display device shows the multiframe blurred picture to form fuzzy animation successively;With
The current imaging pattern is switched to target imaging mode.
The control device of the terminal of embodiment of the present invention is used for control terminal, and terminal includes that display device and imaging fill It sets, control device includes:
First control module obtains ambient image for controlling the imaging device with current imaging pattern;
Processing module, for ambient image described in multiple Fuzzy Processing to generate multiframe blurred picture;
Second control module shows the multiframe blurred picture to form fuzzy move successively for controlling the display device It draws;With
Handover module, for the current imaging pattern to be switched to target imaging mode.
The one or more of embodiment of the present invention, which includes that the non-volatile computer of computer executable instructions is readable, deposits Storage media, when the computer executable instructions are executed by one or more processors so that described in the processor executes Control method.
The computer equipment of embodiment of the present invention, including memory and processor store calculating in the memory Machine readable instruction, when described instruction is executed by the processor so that the processor executes the control method.
The control method and device of the terminal of embodiment of the present invention, computer readable storage medium and computer equipment, By showing the multiframe blurred picture formed through Fuzzy Processing by ambient image and forming fuzzy animation so that in imaging device In imaging pattern handoff procedure, the image switching that display device is shown is milder and beautiful, promotes user experience.
The additional aspect and advantage of the present invention will be set forth in part in the description, and will partly become from the following description Obviously, or practice through the invention is recognized.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with Obtain other attached drawings according to these attached drawings.
Fig. 1 is the flow diagram of the control method of certain embodiments of the present invention.
Fig. 2 is the structural schematic diagram of the terminal of certain embodiments of the present invention.
Fig. 3 is the module diagram of the control device of certain embodiments of the present invention.
Fig. 4 is the part-structure schematic diagram of the imaging device of certain embodiments of the present invention.
Fig. 5 is the part-structure schematic diagram of the pixel unit array of the imaging device of certain embodiments of the present invention.
Fig. 6 is the structural schematic diagram of the pixel unit array of the imaging device of certain embodiments of the present invention.
Fig. 7 is the principle schematic of the control method of certain embodiments of the present invention.
Fig. 8 is the flow diagram of the control method of certain embodiments of the present invention.
Fig. 9 is the module diagram of the processing module of the control device of certain embodiments of the present invention.
Figure 10 is the effect diagram of the blurred picture of certain embodiments of the present invention.
Figure 11 is another effect diagram of the blurred picture of certain embodiments of the present invention.
Figure 12 is the flow diagram of the control method of certain embodiments of the present invention.
Figure 13 is the module diagram of the control device of certain embodiments of the present invention.
Figure 14 is the module diagram of the computer equipment of certain embodiments of the present invention.
Figure 15 is the structural schematic diagram of the computer equipment of certain embodiments of the present invention.
Figure 16 is the module diagram of the image processing circuit of certain embodiments of the present invention.
Specific implementation mode
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
It is appreciated that term " first " used in the present invention, " second " etc. can be used to describe herein various elements, But these elements should not be limited by these terms.These terms are only used to distinguish first element and another element.Citing comes It says, without departing from the scope of the invention, the first image can be known as the second image, and similarly, it can be by second Image is known as the first image.First image and the second image both image, but be not same image.
It please refers to Fig.1 and Fig. 2, the control method of the terminal 100 of embodiment of the present invention is used for control terminal 100, terminal 100 include display device 20 and imaging device 30.Control method includes step:
01:It controls imaging device 30 and ambient image is obtained with current imaging pattern;
02:Multiple Fuzzy Processing ambient image is to generate multiframe blurred picture;
03:Control display device 20 shows multiframe blurred picture to form fuzzy animation successively;With
04:Current imaging pattern is switched to target imaging mode.
Fig. 2 and Fig. 3 are please referred to, the control device 10 of the terminal 100 of embodiment of the present invention is used for control terminal 100.Eventually End 100 includes display device 20 and imaging device 30.Control device 10 includes the first control module 11, processing module 12, second Control module 13 and handover module 14.The control method of embodiment of the present invention can be by the control device 10 of embodiment of the present invention Implement.Specifically, the first control module 11 can be used for implementation steps 01, and processing module 12 can be used for implementation steps 02, the second control Molding block 13 can be used for implementation steps 03, and handover module 14 can be used for implementation steps 04.In other words, the first control module 11 can Ambient image is obtained with current imaging pattern for controlling imaging device 30;Processing module 12 can be used for multiple Fuzzy Processing environment Image is to generate multiframe blurred picture;Second control module 13 can be used for controlling display device 20 and show multiframe blurred picture successively Animation is obscured to be formed;Handover module 14 can be used for current imaging pattern being switched to target imaging mode.
The control method and control device 10 of embodiment of the present invention are formed by ambient image through Fuzzy Processing by showing Multiframe blurred picture and formed obscure animation so that in the imaging pattern handoff procedure of imaging device 30, display device 20 The image switching of display is milder and beautiful, promotes user experience.
Specifically, terminal 100 can be camera, mobile phone etc. it is arbitrary include setting for display device 20 and imaging device 30 It is standby, in embodiments of the present invention, only illustrated so that terminal 100 is mobile phone as an example, and the form of terminal 100 is not limited to hand Machine.Display device 20 can be the display screen of terminal 100, and display device 20 can be one in multiple display screens of terminal 100 A or multiple, imaging device 30 can be camera, imaging device 30 can be one in multiple cameras of terminal 100 or It is multiple, such as imaging device 30 can be the preposition tune camera or rear camera of terminal 100.
Incorporated by reference to fig. 4 to fig. 6, imaging device 30 includes pel array 31, and pel array 31 can be Bayer array, pixel Array 31 includes multiple merging pixel units 311, and each pixel unit 311 that merges can independently be exposed time control including multiple Multiple photosensitive pixels 3111 of system.Pel array 31 is arranged in Bayer array.Pel array 31 includes multiple merging pixel units 311.Each pixel unit 311 that merges includes multiple photosensitive pixels 3111, for example, in embodiment as shown in Figure 9, each It includes 2 × 2 photosensitive pixels 3111 to merge pixel unit 311, certainly, merges photosensitive pixel 3111 in pixel unit 311 Quantity is alternatively other numerical value.Imaging device 30 further includes filter unit array 32, and filter unit array 32 includes multiple Filter unit 322, each filter unit 322 correspond to one merging pixel unit 311 of covering.In the specific implementation of the present invention In example, it includes a long exposing pixels, two middle exposing pixels and a short exposure picture that each, which merges pixel unit 311, Element, long exposing pixels refer to that the time for exposure of 3111 corresponding sensor devices of photosensitive pixel is long time for exposure, middle exposure picture Element refers to that the time for exposure of 3111 corresponding sensor devices of photosensitive pixel is the middle time for exposure, and short exposure pixel refers to photosensitive The time for exposure of 3111 corresponding sensor devices of pixel is short exposure time, wherein the long time for exposure>The middle time for exposure>Short exposure Between light time, and long time for exposure/middle time for exposure=middle time for exposure/short exposure time.Certainly, in other embodiments, often The quantity of one long exposing pixels, middle exposing pixels and short exposure pixel merged in pixel is alternatively other numerical value.
When imaging device 30 works, long exposing pixels, middle exposing pixels and short exposure pixel synchronize exposure, and synchronous exposure refers to Be that the exposure of middle exposing pixels and short exposure pixel carries out the time and is located within the exposure progress time of long exposing pixels.Specifically Ground, by taking photosensitive pixel 3111 red in pixel unit array 31 shown in fig. 6 as an example, R (1,1) be long exposing pixels, R (1, 2) and R (2,1) is middle exposing pixels, and R (2,2) is short exposure pixel, and the exposure process of each photosensitive pixel 3111 can be:It is first It first controls long exposing pixels R (1,1) to start to expose at first, during the exposure of long exposing pixels R (1,1), then be exposed in controlling Light pixel R (1,2), middle exposing pixels R (2,1) and short exposure pixel R (2,2) exposure, wherein middle exposing pixels R (1,2) and The exposure initial time of middle exposing pixels R (2,1) is consistent, and middle exposing pixels R (1,2) and R (2,1) and short exposure pixel R (2,2) exposure deadline should it is identical as the long exposure deadline of exposing pixels R (1,1) or positioned at long exposing pixels R (1, 1) before exposure deadline;Alternatively, controlling long exposing pixels R (1,1), middle exposing pixels R (1,2), middle exposing pixels R (2,1) and short exposure pixel R (2,2) start simultaneously at exposure, i.e., long exposing pixels R (1,1), middle exposing pixels R (1,2), in The exposure initial time of exposing pixels R (2,1) and short exposure pixel R (2,2) are identical.In this way, without controlling pixel unit battle array Row 31 carry out long exposure, middle exposure and short exposure successively, can reduce the shooting time of final image.
It is appreciated that the imaging device 30 of terminal 100 can have different imaging patterns, and between different imaging patterns Can mutually it switch, such as mutual switching between preposition exposal model and postposition exposal model or portrait mode of figure are clapped with night Mutual switching between pattern, or common mutual switching between exposal model and panoramic photographing mode.Implement in the present invention Example in, by imaging device 30 between the first mode and the second mode mutually switching for illustrate, can be currently at As pattern is to be switched to second mode in the case of first mode, second mode is target imaging mode at this time;Can also be First mode is switched in the case where current imaging pattern is second mode, first mode is target imaging mode at this time.
Fig. 4 to fig. 6 is please referred to, first mode can be the imaging pattern being imaged in the following manner:
Control multiple original pixels information that pel array 31 exports different exposure time;According to same merging pixel unit The time for exposure, multiple merging Pixel Informations were calculated in identical original pixels information in 311;Believe with according to multiple merging pixels Breath obtains final image.
Second mode can be the imaging pattern being imaged in the following manner:
Control multiple original pixels information that pel array 31 exports different exposure time;To same merging pixel unit Packed-pixel information is calculated in original pixels information combination in 311, and each pixel unit 311 that merges corresponds to a combination picture Prime information;With according to multiple packed-pixel acquisition of information final images.
In the flrst mode, imaging device 30 controls long exposing pixels, middle exposure picture in each pixel unit 311 first Element and short exposure pixel synchronize exposure, wherein the long exposing pixels corresponding time for exposure is the initial long time for exposure, middle exposure picture The element corresponding time for exposure is the initial middle time for exposure, and the short exposure pixel corresponding time for exposure is initial short exposure time, just Long time for exposure, initial middle time for exposure and the initial short exposure time of beginning are pre-set.After end exposure, each picture Plain unit 311 will export four original pixels information, by taking the pixel unit 311 of red shown in fig. 6 as an example, four original pixels Information include the original pixels information of long exposing pixels R (1,1) output, middle exposing pixels R (1,2) outputs original pixels letter The original pixels information of breath, the original pixels information of middle exposing pixels R (2,1) outputs and short exposure pixel R (2,2) outputs. It controls the 3111 equal manner described above of photosensitive pixel in each pixel unit and synchronizes the exposure for carrying out the long, medium and short time, and Obtain multiple original pixels information of each pixel unit output.Then, identical according to the time for exposure in same pixel unit 311 Original pixels information multiple merging Pixel Informations are calculated, specifically, the pixel unit 311 with red shown in fig. 6 is Example, when the number of photosensitive pixel 3111 in pixel unit 311 is 2 × 2, the original pixels information of long exposing pixels R (1,1) is To grow the merging Pixel Information of exposure, the original pixels information of middle exposing pixels R (1,2) is original with middle exposing pixels R (2,1) The merging Pixel Information that the sum of Pixel Information exposes in being, the original pixels information of short exposure pixel R (2,2) is short exposure Merging Pixel Information;When photosensitive pixel 3111 in pixel unit 311 number be 2 × 4, and the number of long exposing pixels be 2 A, middle exposing pixels are 4, and when short exposure pixel is 2, the sum of original pixels information of 2 long exposing pixels is long expose The merging Pixel Information of light, the merging Pixel Information that the sum of original pixels information of 4 middle exposing pixels exposes in being, 2 The sum of original pixels information of short exposure pixel is the merging Pixel Information of short exposure.In this way, entire pixel list can be obtained The merging of the merging Pixel Information, the merging Pixel Information, multiple short exposures of multiple middle exposures of multiple long exposures of element array 31 Pixel Information.Long exposure subgraph is obtained further according to the merging Pixel Information interpolation calculation of multiple long exposures, according to multiple middle exposures The merging Pixel Information interpolation calculation of light obtains middle exposure subgraph, according to the merging Pixel Information interpolation calculation of multiple short exposures Obtain short exposure subgraph.Finally, long exposure subgraph, middle exposure subgraph and short exposure subgraph fusion treatment are obtained into height The final image of dynamic range, wherein long exposure subgraph, middle exposure subgraph and short exposure subgraph are not traditional sense On three frame images, but long and short in same frame image, middle exposing pixels corresponding region formed image section.
Alternatively, after 31 end exposure of pixel unit array, on the basis of the original pixels information of long exposing pixels output, By the original image of the original pixels information of short exposure pixel and the original pixels information superposition of middle exposing pixels to long exposing pixels In prime information.Specifically, for example, to the original pixels information of three kinds of different exposure times different weights can be assigned respectively, After in each time for exposure, corresponding original pixels information is multiplied with weights, then original pixels information phase that three kinds are multiplied by after weights Add the resulting pixel information as a pixel unit 311.Subsequently, as being believed according to the original pixels of three kinds of different exposure times The grey level for ceasing each the resulting pixel information being calculated will produce variation, therefore, after obtaining resulting pixel information Need to do each resulting pixel information the compression of grey level.After compression, according to multiple compressions after obtain Resulting pixel information carries out interpolation calculation and can be obtained final image.In this way, dark portion is via long exposing pixels in final image The original pixels information of output compensates, and the original pixels information that highlights has been exported via short exposure pixel is suppressed, because This, final image is there is no overexposure region and owes to expose region, has higher dynamic range and preferable imaging effect.
Further, it is the image quality for further improving final image, in long exposing pixels, middle exposing pixels and short exposure Basis initial long time for exposure, initial middle time for exposure and initial short exposure time synchronize after exposing light pixel respectively, first root Long exposure histogram is calculated according to the original pixels information of long exposing pixels output, is believed according to the original pixels of short exposure pixel output Breath calculates short exposure histogram, and initially the long time for exposure obtains correcting long time for exposure, root according to long exposure histogram modification It obtains correcting short exposure time according to the initial short exposure time of short exposure histogram modification.Then, long exposing pixels, middle exposure are controlled then Light pixel and short exposure pixel according to amendment long time for exposure, initial middle time for exposure and correct short exposure time synchronization exposure respectively Light.Wherein, makeover process not settles at one go, but imaging device 30 needs to carry out the synchronous exposure of multiple long, medium and short, After synchronous exposure each time, imaging device 30 can continue to correct length according to the long exposure histogram and short exposure histogram of generation Time for exposure and short exposure time, and corrected using last moment when exposing next time the amendment long time for exposure, amendment Short exposure time and original middle time for exposure synchronize exposure, continue to obtain long exposure histogram and short exposure histogram, So in cycles, until there is no owe to expose region, the corresponding figure of short exposure histogram in the corresponding image of long exposure histogram There is no until overexposure region as in, amendment long time for exposure and amendment short exposure time at this time are that final amendment length exposes Between light time and correct short exposure time.Further according to the defeated of long exposing pixels, middle exposing pixels and short exposure pixel after end exposure Go out to carry out the calculating of final image, the calculation is identical as the calculation in a upper embodiment, and details are not described herein.
Wherein long exposure histogram can be one or more.When long exposure histogram is one, according to all long exposures The original pixels information of pixel output generates one long exposure histogram.When long exposure histogram is multiple, to long exposing pixels Region is divided, and one long exposure histogram is generated according to the original pixels letter element of multiple long exposure pictures in each region, such as This, multiple regions correspond to multiple long exposure histograms.The effect for dividing region is when can promote long exposure modified each time Between accuracy, accelerate the amendment process of long time for exposure.Similarly, short exposure histogram can be one or more.Short exposure When light histogram is one, a short exposure histogram is generated according to the original pixels information of all short exposure pixels output.It is short When exposure histogram is multiple, region is divided to short exposure pixel, and according to the original of multiple short exposure pixels in each region Beginning Pixel Information generates a short exposure histogram, in this way, multiple regions correspond to multiple short exposure histograms.Divide the work in region With being the accuracy that can promote modified short exposure time each time, accelerate the amendment process of short exposure time.
Under the second mode, by taking the pixel unit 311 of red shown in Fig. 7 as an example, R (1,1) be long exposing pixels, R (1, 2) and R (2,1) is middle exposing pixels, and R (2,2) is short exposure pixel.Long exposing pixels R (1,1), middle exposing pixels are controlled first R (1,2), middle exposing pixels R (2,1) and the synchronous exposures of short exposure pixel R (2,2).After end exposure, red pixel unit 311 will export four original pixels information, i.e., the original pixels information of long exposing pixels R (1,1) output, middle exposing pixels R (1, 2) the original pixels information and short exposure pixel R (2,2) of the original pixels information, middle exposing pixels R (2,1) outputs that export The original pixels information of output.In this way, the 3111 equal manner described above of photosensitive pixel controlled in each pixel unit 311 is same The exposure of Shi Jinhang long, medium and short times, and obtain multiple original pixels information of the output of each pixel unit 311.Then to same Original pixels information in one pixel unit 311 is combined calculating to obtain multiple packed-pixel information, specifically, with Fig. 7 Shown in for pixel unit 311, the packed-pixel information of each pixel unit 311 is calculated using following formula:In this way, the multiple of multiple pixel units 311 in entire pixel unit array 31 can be calculated Packed-pixel information.Finally, final image is obtained further according to multiple packed-pixel information interpolation calculations.
It is appreciated that first mode is the original pixels information of the three kinds of different exposure times exported using pel array 31 To obtain final image.Since final image is combined by the Pixel Information of three kinds of time for exposure of long, medium and short, The final image that can be got under first mode has higher dynamic range.However, first mode is relatively specific for currently The higher scene of brightness value of environment.When ambient brightness is higher, middle exposing pixels can be with normal exposure, and long exposing pixels can be with Deficient exposure part in amendment in exposure image, the overexposure part during short exposure pixel can be corrected in exposure image, to obtain The final image of high dynamic range.It is but if being taken pictures using first mode when current environment brightness value is relatively low, then long to expose Light pixel and middle exposing pixels can not obtain enough exposures, and the final image noise shot under first mode is more, comparison Degree and clarity are bad.
And second mode is that multiple original pixels information in same merging pixel are combined calculating, in ambient brightness When relatively low, although the resolution of final image can be reduced using second mode acquisition final image, each in final image The Pixel Information of pixel is combined by the original pixels information of multiple photosensitive pixels 3111, compared with first mode, the The brightness of the final image obtained under two modes is twice of the brightness of the final image obtained under first mode.Therefore, in ring The better of the final image of second mode acquisition is used when border brightness is relatively low.
That is, when imaging device 30 is taken pictures under different light environment, clapped using first mode and second mode According to different final images can be obtained, in other words, when being taken pictures using first mode and second mode, what display device 20 was shown Preview image is also different, and during first mode and second mode switch, display device 20 is also required in two kinds of preview graphs In the handoff procedure of picture, transition is completed with above-mentioned fuzzy animation.
In addition, due to being required to carry out the time exposure of long exposing pixels under first mode and second mode, at this point, in advance The output frame rate of image look at can reduce, defeated if the display frame rate of display device 20 is more than the output frame rate of preview image at this time Go out frame per second to mismatch with display frame rate, interim card situation, slack situation occurs in the display that may result in display device 20.For The problem is avoided, display device 20 can be directly controlled and reduce display frame rate so that display frame rate matches with output frame rate.Or Person, when display frame rate is higher than output frame rate, it is assumed that do not generate the preview image at the moment under at a time also, can not carry out Output display, then carry out output by the preview image of last moment and show, i.e., when filling up current with the preview image of last moment Inscribe the vacancy for the preview image to be exported, that is to say, that the ambient image for being blurred processing is also likely to be the pre- of last moment Look at image.The display of display device 20 is caused interim card occur in this way, display frame rate and output frame rate mismatch can be avoided the occurrence of The problem of, improve the usage experience of user.
Fig. 2 and Fig. 3 are please referred to, in actual use, control device 10 can be in the handover operation for receiving user Control method is come into effect, current imaging pattern is switched to target imaging mode, the handover operation of user can be user In the touch control operation of display device 20 or user terminal 100 etc. is shaken according to scheduled rule.The usual meeting of display device 20 exists Imaging device 30 shows the ambient image that imaging device 30 is obtained with current imaging pattern when opening, in order to which user's preview is imaged Effect afterwards, and during imaging pattern switches, imaging device 30 can not usually obtain real-time ambient image.The present invention For the control method and control device 10 of embodiment during imaging pattern switches, the control display of display device 20 is fuzzy dynamic It draws, the picture of switching is milder and beautiful, will not be lofty.
Fuzzy Processing can be carried out to ambient image successively by carrying out multiple Fuzzy Processing to ambient image, or be claimed at timesharing Reason.In one example, it is fuzzy can to obtain first frame at the first moment to ambient image progress Fuzzy Processing for processing module 12 Image carries out Fuzzy Processing to ambient image at the second moment and obtains the second frame blurred picture, at the third moment to ambient image It carries out Fuzzy Processing and obtains third frame blurred picture ... ..., carrying out Fuzzy Processing to ambient image in n-hour obtains nth frame Blurred picture.Then, the second control module 13 control display device 20 shows first frame blurred picture, the second frame fuzzy graph successively Picture, third frame blurred picture ..., nth frame blurred picture to be to form fuzzy animation.In the first moment, the second moment, third Carve ..., n-hour to ambient image carry out Fuzzy Processing fog-level can entirely different or part it is identical, part not Together, so that the blur effect of multiframe blurred picture can be rendered as deepening successively, or weaken successively, or first deepen to weaken afterwards, Or first weaken and deepen afterwards, or first deepen to weaken afterwards the effect deepened again and so on etc..
In another example, processing module 12 can carry out Fuzzy Processing to ambient image at the first moment and obtain first Frame blurred picture, the second moment carried out Fuzzy Processing to first frame blurred picture and obtains the second frame blurred picture, at the third moment Fuzzy Processing is carried out to the second frame blurred picture and obtains third frame blurred picture ... ..., it is fuzzy in n-hour pair (N-1) frame Image carries out Fuzzy Processing and obtains nth frame blurred picture.In this way, the operand of Fuzzy Processing is smaller.Then, the second control module 13 control display devices 20 show successively first frame blurred picture, the second frame blurred picture, third frame blurred picture ..., N Frame blurred picture is to form fuzzy animation.It should be pointed out that since each Fuzzy Processing is all in former frame blurred picture On the basis of carry out, therefore carry out Fuzzy Processing fog-level can identical or entirely different or part be identical, part Difference so that the blur effect of multiframe blurred picture can be rendered as deepening successively, or weakens successively, or first deepens to subtract afterwards It is weak, or first weaken and deepen afterwards, or first deepen to weaken afterwards the effect deepened again and so on etc..
In addition, it can also be to carry out repeatedly fuzzy place to ambient image simultaneously to carry out multiple Fuzzy Processing to ambient image Reason, or claim while handling.For example, ambient image can be copied as N frame ambient images by processing module 12, processing module 12 exists First moment carried out Fuzzy Processing to first frame ambient image and obtains first frame blurred picture, in first moment pair the second frame environment Image carries out Fuzzy Processing and obtains the second frame blurred picture, and carrying out Fuzzy Processing to third frame ambient image at the first moment obtains Third frame blurred picture ... ... carries out Fuzzy Processing to nth frame ambient image at the first moment and obtains nth frame blurred picture.So Afterwards, the second control module 13 control display device 20 shows first frame blurred picture, the second frame blurred picture, third frame mould successively Paste image ..., nth frame blurred picture to be to form fuzzy animation.It may be noted that be, processing module 12 to N frames ambient image into The fog-level of row Fuzzy Processing can entirely different or part be identical, part is different, so that multiframe blurred picture is fuzzy Effect can be rendered as deepening successively, or weaken successively, or first deepen to weaken afterwards, or first weaken and deepen afterwards, or first deepen to subtract afterwards It is weak to deepen and so on equal effect again.
In some embodiments, the format of the blurred picture generated by Fuzzy Processing is bitmap format (BMP formats).
It is appreciated that BMP formats are the standard image file formats in DOS and Windows operating system, it can be a variety of Application program is supported, is one of widest file format used at present.BMP formats support RGB, indexed color, gray scale With bitmap color mode, and 1,4,24,32 RGB bitmap is supported.
In one embodiment, the second control module 13 control display device 20 shows the frame of the display of multiframe blurred picture Rate is more than or equal to 30Hz.So, it is ensured that smooth and continuous animation play effect is presented.
In some embodiments, it is to pass through height to carry out multiple Fuzzy Processing to ambient image to generate multiframe blurred picture This fuzzy algorithmic approach carries out multiple Fuzzy Processing to ambient image.In other words, processing module 12 can pass through Gaussian Blur algorithm pair Ambient image carries out multiple Fuzzy Processing.
Specifically, Gaussian Blur algorithm using Gaussian Profile and calculates weight matrix, and point, takes centered on each pixel The average value for obtaining surrounding pixel, makes central point lose details to show blur effect.After calculating all pixels, It can be obtained Gaussian Blur effect.The value of blur radius is bigger, then blur effect is more apparent, and Gaussian Blur effect can retain The profile of image, and show relatively uniform, smooth, soft blur effect.In this way, by carrying out mould by Gaussian Blur algorithm The fuzzy animation that the multiframe blurred picture that paste is handled is formed can also show soft dynamic change effect, to substantially carry Rise user experience.
Referring to Fig. 8, in some embodiments, step 02 includes:
021:Initial fuzzy parameter, fuzzy parameter increment, maximum fuzzy parameter are set, and initial fuzzy parameter is less than maximum norm Paste parameter;
022:Multiple superposition fuzzy parameters, multiple superposition moulds are obtained according to initial fuzzy parameter and fuzzy parameter incremental computations It pastes parameter and is respectively less than maximum fuzzy parameter;With
023:Gaussian Blur algorithm by substituting into multiple superposition fuzzy parameters respectively repeatedly obscures ambient image Processing is to generate multiframe blurred picture.
Referring to Fig. 9, in some embodiments, processing module 12 includes setting unit 121, computing unit 122 and place Manage unit 123.Setting unit 121, computing unit 122 and processing unit 123 can be respectively used to implementation steps 021,022 and 023. In other words, setting unit 121 can be used for being arranged initial fuzzy parameter, fuzzy parameter increment, maximum fuzzy parameter, initial fuzzy Parameter is less than maximum fuzzy parameter;Computing unit 122 can be used for being obtained according to initial fuzzy parameter and fuzzy parameter incremental computations Multiple superposition fuzzy parameters, multiple superposition fuzzy parameters are respectively less than maximum fuzzy parameter;Processing unit 123 can be used for passing through difference The Gaussian Blur algorithm for substituting into multiple superposition fuzzy parameters carries out multiple Fuzzy Processing to generate multiframe fuzzy graph to ambient image Picture.
Specifically, when being superimposed fuzzy parameter difference, the fog-level that Fuzzy Processing is carried out to ambient image is different.Superposition The value of fuzzy parameter is bigger, and fog-level is deeper, and the value for being superimposed fuzzy parameter is smaller, and fog-level is weaker.For example, Figure 11 Superposition fuzzy parameter value more than Figure 10 superposition fuzzy parameter value, it is clear that the mould of blurred picture shown in Figure 11 Paste degree is more than the fog-level of blurred picture shown in Fig. 10.Therefore, it is also desirable to which a maximum fuzzy parameter is arranged to constrain Fog-level.It is appreciated that the value of initial fuzzy parameter, fuzzy parameter increment, superposition fuzzy parameter and maximum fuzzy parameter It is all higher than 0.
In one embodiment, computing unit 122 obtains first according to initial fuzzy parameter and fuzzy parameter incremental computations Superposition fuzzy parameter (first superposition parameter can be equal to initial fuzzy parameter), and judge first be superimposed fuzzy parameter whether be more than or Equal to maximum fuzzy parameter.When the first superposition fuzzy parameter is less than maximum fuzzy parameter, processing unit 123 is by the first superposition mould It pastes parameter and substitutes into Gaussian Blur algorithm, Fuzzy Processing is carried out to ambient image using the Gaussian Blur algorithm and generate first frame mould Paste image.Computing unit 122 obtains the second superposition fuzzy parameter according to initial fuzzy parameter and fuzzy parameter incremental computations, and sentences Whether disconnected second superposition fuzzy parameter is greater than or equal to maximum fuzzy parameter.When the second superposition fuzzy parameter is less than maximum fuzzy ginseng When number, the second superposition fuzzy parameter is substituted into Gaussian Blur algorithm by processing module 12, using the Gaussian Blur algorithm to environment map As carrying out Fuzzy Processing and generating the second frame blurred picture, and so on, it substitutes into third superposition fuzzy parameter and obtains Gaussian Blur Algorithm simultaneously folds ambient image progress Fuzzy Processing to generate third frame blurred picture, substitute into the 4th using the Gaussian Blur algorithm Add fuzzy parameter to obtain Gaussian Blur algorithm and Fuzzy Processing is carried out to generate the to ambient image using the Gaussian Blur algorithm Four frame blurred pictures etc..
In some embodiments, the value range of maximum fuzzy parameter is (0,25).
In other words, maximum fuzzy parameter can be the arbitrary value in (0,25) range.For example, maximum fuzzy parameter can Think 5,11.2,15,16,17.9,18.3,19,21,23,24.5 etc..
Preferably, maximum fuzzy parameter is 17.
In one embodiment, maximum fuzzy parameter is 17, and superposition fuzzy parameter is 0.4, and initial fuzzy parameter is 3.Meter Calculate unit 122 is respectively according to multiple superposition fuzzy parameters that initial fuzzy parameter and fuzzy parameter incremental computations obtain:3、 3.4,3.8,4.2 ..., 16.2,16.6, computing unit 122 by 3,3.4,3.8,4.2 ..., 16.2,16.6 substitute into respectively Gaussian Blur algorithm to ambient image to carry out multiple Fuzzy Processing, to generate multiframe blurred picture.
In some embodiments, the value of multiple superposition fuzzy parameters is incremented by successively.For example, multiple superposition fuzzy parameters Value can be respectively 5,6,10,11,13,16.It should be pointed out that the values of multiple superposition fuzzy parameters can be with linear increment, right Number be incremented by, exponential increasings or it is irregular be incremented by etc., this is not restricted, to generate the multiframe fuzzy graph that blur effect is deepened successively Picture.
In some embodiments, superposition fuzzy parameter meets conditional:
X=X0+ (n-1) * Δs x, 1≤n≤N;
Wherein, X is superposition fuzzy parameter, and X0 is initial fuzzy parameter, and n is the number of Fuzzy Processing, and Δ x is fuzzy parameter Increment, N are the totalframes of multiframe blurred picture.
In other words, it is superimposed fuzzy parameter and the number of Fuzzy Processing is proportionate, the blur effect of multiframe blurred picture It will appear as and deepen successively.Multiple superposition fuzzy parameters are respectively X0, (X0+ Δs x), (X0+2 Δs x), (X0+3 Δs x), (X0+4 Δ x) ..., (X0+ (N-1) * Δs x).In one example, N=10, then multiple superposition fuzzy parameters be respectively:X0、(X0+ Δx)、(X0+2Δx)、(X0+3Δx)、(X0+4Δx)、……、(X0+9Δx).Multiple superpositions are obscured ginseng by computing unit 122 Number substitutes into Gaussian Blur algorithms to carry out multiple Fuzzy Processing to ambient image respectively, with generate blur effect deepen successively it is more Frame blurred picture (by Figure 10 to Figure 11).
In some embodiments, the value of multiple superposition fuzzy parameters is successively decreased successively.For example, multiple superposition fuzzy parameters Value can be respectively 16,13,11,10,6,5.It should be pointed out that the values of multiple superposition fuzzy parameters can be with linear decrease, right Number successively decrease, exponential decrease or it is irregular successively decrease, this is not restricted, to generate the multiframe fuzzy graph that blur effect weakens successively Picture.
In some embodiments, superposition fuzzy parameter meets conditional:
X=X0- (n-1) * Δs x, 1≤n≤N;
Wherein, X is superposition fuzzy parameter, and X0 is initial fuzzy parameter, and n is the number of Fuzzy Processing, and Δ x is fuzzy parameter Increment, N are the totalframes of multiframe blurred picture.
In other words, it is superimposed fuzzy parameter and the number of Fuzzy Processing is negatively correlated, the blur effect of multiframe blurred picture It will appear as and weaken successively.Multiple superposition fuzzy parameters be respectively X0, (X0- Δs x), (X0-2 Δs x), (X0-3 Δs x), (X0-4 Δs x) ..., (X0- (N-1) * Δs x).In one example, N=10, then multiple superposition fuzzy parameters be respectively: X0, (X0- Δs x), (X0-2 Δs x), (X0-3 Δs x), (X0-4 Δs x) ..., (X0-9 Δs x).Computing unit 122 will be more A superposition fuzzy parameter substitutes into Gaussian Blur algorithm to carry out multiple Fuzzy Processing to ambient image, to generate blur effect respectively The multiframe blurred picture weakened successively (by Figure 11 to Figure 10).
In some embodiments, the value of multiple superposition fuzzy parameters is first incremented by successively successively decreases successively again.For example, multiple folded It can be respectively 5,6,10,11,13,16,13,11,10,6,5 to add the value of fuzzy parameter.It is pointed out that multiple superposition moulds Paste parameter value can first linear increment, logarithm be incremental, exponential increasing or it is irregular be incremented by etc., then linear decrease, logarithmic decrease, Exponential decrease or it is irregular successively decrease, this is not restricted, is first deepened successively with generating blur effect, the multiframe that weakens successively again Blurred picture.
In some embodiments, superposition fuzzy parameter meets conditional:
X=X0+ (n-1) * Δs x, 1≤n≤N1;
X=X0+ (2N1-n-1) * Δs x, N1 < n≤N;
Wherein, X is superposition fuzzy parameter, and X0 is initial fuzzy parameter, and n is the number of Fuzzy Processing, and Δ x is fuzzy parameter Increment, N are the totalframes of multiframe blurred picture.
In other words, it is superimposed fuzzy parameter and the number of Fuzzy Processing is first proportionate, then is negatively correlated, preceding N1 frames are fuzzy The blur effect of image is rendered as deepening successively, and the blur effect of rear (N-N1) frame blurred picture is rendered as weakening successively.It is multiple Superposition fuzzy parameter be respectively X0, (X0+ Δs x) ..., (X0+ (N1-1) * Δs x) ..., (X0+ (2N1-N) * Δs x), (X0+ (2N1-N-1) * Δs x).In one example, N1=5, N=10, then multiple superposition fuzzy parameters be respectively:X0、(X0 + Δ x) ..., (X0+4 Δs x) ..., X0, (X0- Δs x).Computing unit 122 substitutes into multiple superposition fuzzy parameters respectively Gaussian Blur algorithm is first deepened with generating blur effect, is weakened successively again to carry out multiple Fuzzy Processing to ambient image successively Multiframe blurred picture (by Figure 10 to Figure 11 again to Figure 10).
In some embodiments, the value of multiple superposition fuzzy parameters is first successively decreased again incremented by successively successively.For example, multiple folded It can be respectively 16,13,11,10,6,5,6,10,11,13,16 to add the value of fuzzy parameter.It is pointed out that multiple superposition moulds Paste parameter value can first linear decrease, logarithmic decrease, exponential decrease or it is irregular successively decrease, then linear increment, logarithm it is incremental, Exponential increasing or it is irregular be incremented by etc., this is not restricted, is first weakened successively with generating blur effect, the multiframe deepened successively again Blurred picture.
In some embodiments, superposition fuzzy parameter meets conditional:
X=X0- (n-1) * Δs x, 1≤n≤N1;
X=X0- (2N1-n-1) * Δs x, N1 < n≤N;
Wherein, X is superposition fuzzy parameter, and X0 is initial fuzzy parameter, and n is the number of Fuzzy Processing, and Δ x is fuzzy parameter Increment, N are the totalframes of multiframe blurred picture.
In other words, it is superimposed fuzzy parameter and the number of Fuzzy Processing is first negatively correlated, then be proportionate, preceding N1 frames are fuzzy The blur effect of image is rendered as weakening successively, and the blur effect of rear (N-N1) frame blurred picture is rendered as deepening successively.It is multiple Superposition fuzzy parameter be respectively X0, (X0- Δs x) ..., (X0- (N1-1) * Δs x) ..., (X0- (2N1-N) * Δs X), (X0- (2N1-N-1) * Δs x).In one example, N1=5, N=10, then multiple superposition fuzzy parameters be respectively: X0, (X0- Δs x) ..., (X0-4 Δs x) ..., X0, (X0+ Δs x).Computing unit 122 divides multiple superposition fuzzy parameters Not Dai Ru Gaussian Blur algorithm to carry out multiple Fuzzy Processing to ambient image, first weakened successively with generating blur effect, again according to The multiframe blurred picture of secondary intensification (by Figure 11 to Figure 10 again to Figure 11).
It should be pointed out that in the above-described embodiment, be superimposed fuzzy parameter and the number of Fuzzy Processing is linearly related, In other embodiments, superposition fuzzy parameter is in nonlinear correlation (such as quadratic function is related) to the number of Fuzzy Processing, with Form soft animation visual effect.
2 are please referred to Fig.1, in some embodiments, control method further includes step after step 04:
05:It controls imaging device 30 and ambient image is obtained with target pattern;With
06:Control display device 20 shows the ambient image obtained with target imaging mode.
3 are please referred to Fig.1, in some embodiments, control device 10 further includes that third control module 15 and the 4th controls Module 16.Third control module 15 and the 4th control module 16 can be used for implementation steps 05 and 06, that is to say, that third controls mould Block 15 can be used for controlling imaging device 30 and obtain ambient image with target pattern, and the 4th control module 16 can be used for controlling display dress Set the ambient image that 20 displays are obtained with target imaging mode.
After control device 10 completes the switching to the imaging pattern of imaging device 30, the control imaging of third control module 15 Device 30 obtains ambient image with the imaging pattern (i.e. target pattern) after switching, and the 4th control module 16 controls display device 20 Show the ambient image so that the effect that user can be imaged by 20 preview of display device in time takes satisfaction convenient for user The photo of demand.
Embodiment of the present invention additionally provides a kind of computer readable storage medium.One or more, which includes computer, to be held The non-volatile computer readable storage medium storing program for executing of row instruction, when computer executable instructions are executed by one or more processors When so that processor executes the control method of any of the above-described embodiment.Such as execute step 01:Imaging device 30 is controlled to work as Preceding imaging pattern obtains ambient image;Step 02:Multiple Fuzzy Processing ambient image is to generate multiframe blurred picture;Step 03: Control display device 20 shows multiframe blurred picture to form fuzzy animation successively;Step 04:Current imaging pattern is switched to Target imaging mode.
Please refer to Fig.1 4, embodiment of the present invention additionally provides a kind of computer equipment 200.Computer equipment 200 can be with It is above-mentioned terminal 100.Computer equipment 200 includes memory 50 and processor 60, and storing computer in memory 50 can Reading instruction 70, when instruction 70 is executed by processor 60, processor 60 executes the control method of any of the above-described embodiment.Such as it holds Row step 01:It controls imaging device 30 and ambient image is obtained with current imaging pattern;Step 02:Multiple Fuzzy Processing ambient image To generate multiframe blurred picture;Step 03:Control display device 20 shows multiframe blurred picture to form fuzzy animation successively;Step Rapid 04:Current imaging pattern is switched to target imaging mode.
Figure 15 is the internal structure schematic diagram of one embodiment Computer equipment 200.As shown in figure 15, which sets Standby 200 include the processor 60 connected by system bus 81, memory 50 (being, for example, non-volatile memory medium), interior storage Device 82, display screen 83 and input unit 84.Wherein, the memory 50 of computer equipment 200 is stored with operating system and computer Readable instruction.The computer-readable instruction can be executed by processor 60, to realize the control method of the application embodiment.At this Device 60 is managed for providing calculating and control ability, supports the operation of entire computer equipment 200.The memory of computer equipment 200 Reservoir 50 provides environment for the operation of the computer-readable instruction in memory 52.The display screen 83 of computer equipment 200 can be with It is liquid crystal display or electric ink display screen etc., input unit 84 can be the touch layer covered on display screen 83, also may be used To be button, trace ball or the Trackpad being arranged on 200 shell of computer equipment, can also be external keyboard, Trackpad or Mouse etc..The computer equipment 200 can be mobile phone, tablet computer, laptop, personal digital assistant or Wearable (such as Intelligent bracelet, smartwatch, intelligent helmet, intelligent glasses) etc..It will be understood by those skilled in the art that being shown in Figure 15 Structure do not constitute and application scheme be applied to only with the schematic diagram of the relevant part-structure of application scheme The restriction of computer equipment 200 thereon, specific computer equipment 200 may include than more or fewer portions as shown in the figure Part either combines certain components or is arranged with different components.
6 are please referred to Fig.1, the computer equipment 200 of the embodiment of the present application includes image processing circuit 90, image procossing electricity Road 90 can utilize hardware and or software component to realize, including define ISP (Image Signal Processing, picture signal Processing) pipeline various processing units.Figure 16 is the schematic diagram of image processing circuit 90 in one embodiment.As shown in figure 16, For purposes of illustration only, only showing the various aspects with the relevant image processing techniques of the embodiment of the present application.
As shown in figure 16, image processing circuit 90 includes ISP processors 91 (ISP processors 91 can be processor 60) and control Logic device 92 processed.The image data that camera 93 captures is handled by ISP processors 91 first, and ISP processors 91 are to image data It is analyzed to capture the image statistics for the one or more control parameters that can be used for determining camera 93.Camera 93 can Including one or more lens 932 and imaging sensor 934.Imaging sensor 934 may include colour filter array (such as Bayer Filter), imaging sensor 934 can obtain the luminous intensity and wavelength information that each imaging pixel captures, and providing can be by ISP processing One group of raw image data of the processing of device 91.Sensor 94 (such as gyroscope) can be based on 94 interface type of sensor the figure of acquisition As the parameter (such as stabilization parameter) of processing is supplied to ISP processors 91.94 interface of sensor can be SMIA (Standard Mobile Imaging Architecture, Standard Mobile Imager framework) interface, other serial or parallel camera interfaces or The combination of above-mentioned interface.
In addition, raw image data can be also sent to sensor 94 by imaging sensor 934, sensor 94 can be based on sensing 94 interface type of device is supplied to ISP processors 91 or sensor 94 to arrive raw image data storage raw image data In video memory 95.
ISP processors 91 handle raw image data pixel by pixel in various formats.For example, each image pixel can have There are the bit depth of 8,10,12 or 14 bits, ISP processors 91 that can carry out one or more image procossing behaviour to raw image data Make, statistical information of the collection about image data.Wherein, image processing operations can by identical or different bit depth precision into Row.
ISP processors 91 can also receive image data from video memory 95.For example, 94 interface of sensor is by original image Data are sent to video memory 95, and the raw image data in video memory 95 is available to ISP processors 91 for place Reason.Video memory 95 can be independent special in memory 50, a part for memory 50, storage device or electronic equipment With memory, and it may include DMA (Direct Memory Access, direct direct memory access (DMA)) feature.
When receiving the original from 934 interface of imaging sensor or from 94 interface of sensor or from video memory 95 When beginning image data, ISP processors 91 can carry out one or more image processing operations, such as time-domain filtering.Treated image Data can be transmitted to video memory 95, to carry out other processing before shown.ISP processors 91 are stored from image Device 95 receives processing data, and is carried out at the image data in original domain and in RGB and YCbCr color spaces to processing data Reason.Treated that image data may be output to display 97 (display 97 may include display screen 83) for ISP processors 91, for Family is watched and/or is further processed by graphics engine or GPU (Graphics Processing Unit, graphics processor).This Outside, the output of ISP processors 91 also can be transmitted to video memory 95, and display 97 can read image from video memory 95 Data.In one embodiment, video memory 95 can be configured as realizing one or more frame buffers.In addition, ISP processing The output of device 91 can be transmitted to encoder/decoder 96, so as to encoding/decoding image data.The image data of coding can be protected It deposits, and is decompressed before being shown in 97 equipment of display.Encoder/decoder 96 can be real by CPU or GPU or coprocessor It is existing.
The statistical data that ISP processors 91 determine, which can be transmitted, gives control logic device Unit 92.For example, statistical data may include The imaging sensors such as automatic exposure, automatic white balance, automatic focusing, flicker detection, black level compensation, 932 shadow correction of lens 934 statistical informations.Control logic device 92 may include the processing element and/or microcontroller that execute one or more routines (such as firmware) Device, one or more routines according to the statistical data of reception, can determine the control parameter of camera 93 and the control of ISP processors 91 Parameter processed.For example, the control parameter of camera 93 may include 94 control parameter of sensor (such as the integral of gain, spectrum assignment Time, stabilization parameter etc.), camera flash control parameter, 932 control parameter of lens (such as focus or zoom focal length) or The combination of these parameters.ISP control parameters may include for automatic white balance and color adjustment (for example, during RGB processing) 932 shadow correction parameter of gain level and color correction matrix and lens.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in that a non-volatile computer is readable to be deposited In storage media, the program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium Can be magnetic disc, CD, read-only memory (Read-Only Memory, ROM) etc..
Several embodiments of the invention above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously Cannot the limitation to the scope of the claims of the present invention therefore be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the guarantor of the present invention Protect range.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (16)

1. a kind of control method of terminal, the terminal include display device and imaging device, which is characterized in that the controlling party Method includes:
It controls the imaging device and ambient image is obtained with current imaging pattern;
Ambient image is to generate multiframe blurred picture described in multiple Fuzzy Processing;
Control the display device shows the multiframe blurred picture to form fuzzy animation successively;With
The current imaging pattern is switched to target imaging mode.
2. control method according to claim 1, which is characterized in that the imaging device includes pixel unit array, institute It includes multiple pixel units to state pixel unit array, and each pixel unit includes multiple photosensitive pixels, each pixel unit Include long exposing pixels, middle exposing pixels and short exposure pixel, the time for exposure of the long exposing pixels is more than the middle exposure The time for exposure of light pixel, and the time for exposure of the middle exposing pixels is more than the short exposure time of the short exposure pixel.
3. control method according to claim 1, which is characterized in that the imaging device includes pel array, the picture Pixel array includes multiple merging pixel units, and the current imaging pattern is one kind in optional mode, the target imaging mould Formula is another kind, and the optional mode includes first mode and second mode, and the first mode includes:
Control multiple original pixels information of the pel array output different exposure time;
Merge in the same merging pixel unit time for exposure identical original pixels information to obtain multiple merging pictures Prime information;With
Final image is obtained according to multiple merging Pixel Informations;
The second mode includes:
Control multiple original pixels information of the pel array output different exposure time;
Packed-pixel information, Mei Gesuo are calculated to the same original pixels information combination merged in pixel unit It states and merges the pixel unit one packed-pixel information of correspondence;With
According to multiple packed-pixel acquisition of information final images.
4. according to the control method described in claims 1 to 3 any one, which is characterized in that the control method will be will be described Further include after currently imaging pattern is switched to target imaging mode:
It controls the imaging device and ambient image is obtained with the target imaging mode;With
It controls the display device and shows the ambient image obtained with the target imaging mode.
5. according to the control method described in claims 1 to 3 any one, which is characterized in that described in the multiple Fuzzy Processing Ambient image is to carry out multiple Fuzzy Processing to the ambient image by Gaussian Blur algorithm.
6. control method according to claim 5, which is characterized in that ambient image is with life described in the multiple Fuzzy Processing Include at multiframe blurred picture:
Initial fuzzy parameter, fuzzy parameter increment and maximum fuzzy parameter, the initial fuzzy parameter are set and are less than the maximum Fuzzy parameter;
Multiple superposition fuzzy parameters are obtained according to the initial fuzzy parameter and the fuzzy parameter incremental computations, it is multiple described folded Fuzzy parameter is added to be respectively less than the maximum fuzzy parameter;With
The Gaussian Blur algorithm by substituting into multiple superposition fuzzy parameters respectively carries out the ambient image multiple Fuzzy Processing is to generate the multiframe blurred picture.
7. control method according to claim 6, which is characterized in that the value of multiple superposition fuzzy parameters is passed successively Increase;Or the value of multiple superposition fuzzy parameters is successively decreased successively;Or the value of multiple superposition fuzzy parameters is first incremented by successively again Successively decrease successively;Or it is multiple it is described superposition fuzzy parameters values first successively decrease successively again it is incremented by successively.
8. a kind of control device of terminal, the terminal include display device and imaging device, which is characterized in that the control dress Set including:
First control module obtains ambient image for controlling the imaging device with current imaging pattern;
Processing module, for ambient image described in multiple Fuzzy Processing to generate multiframe blurred picture;
Second control module shows the multiframe blurred picture to form fuzzy animation successively for controlling the display device; With
Handover module, for the current imaging pattern to be switched to target imaging mode.
9. control device according to claim 8, which is characterized in that the imaging device includes pixel unit array, institute It includes multiple pixel units to state pixel unit array, and each pixel unit includes multiple photosensitive pixels, each pixel unit Include long exposing pixels, middle exposing pixels and short exposure pixel, the time for exposure of the long exposing pixels is more than the middle exposure The time for exposure of light pixel, and the time for exposure of the middle exposing pixels is more than the short exposure time of the short exposure pixel.
10. control device according to claim 8, which is characterized in that the imaging device includes pel array, the picture Pixel array includes multiple merging pixel units, and the current imaging pattern is one kind in optional mode, the target imaging mould Formula is another kind, and the optional mode includes first mode and second mode, and the first mode includes:
Control multiple original pixels information of the pel array output different exposure time;
Merge in the same merging pixel unit time for exposure identical original pixels information to obtain multiple merging pictures Prime information;With
Final image is obtained according to multiple merging Pixel Informations;
The second mode includes:
Control multiple original pixels information of the pel array output different exposure time;
Packed-pixel information, Mei Gesuo are calculated to the same original pixels information combination merged in pixel unit It states and merges the pixel unit one packed-pixel information of correspondence;With
According to multiple packed-pixel acquisition of information final images.
11. according to the control device described in claim 8 to 10 any one, which is characterized in that the control device further includes:
Third control module obtains ambient image for controlling the imaging device with the target imaging mode;With
4th control module shows the ambient image obtained with the target imaging mode for controlling the display device.
12. according to the control device described in claim 8 to 10 any one, which is characterized in that the processing module passes through height This fuzzy algorithmic approach carries out multiple Fuzzy Processing to the ambient image.
13. control device according to claim 12, which is characterized in that the processing module includes:
Setting unit, for initial fuzzy parameter, fuzzy parameter increment and maximum fuzzy parameter, the initial fuzzy parameter to be arranged Less than the maximum fuzzy parameter;
Computing unit, for obtaining the fuzzy ginseng of multiple superpositions according to the initial fuzzy parameter and the fuzzy parameter incremental computations Number, multiple superposition fuzzy parameters are respectively less than the maximum fuzzy parameter;With
Processing unit, for the Gaussian Blur algorithm by substituting into multiple superposition fuzzy parameters respectively to the environment Image carries out multiple Fuzzy Processing to generate the multiframe blurred picture.
14. control device according to claim 13, which is characterized in that the value of multiple superposition fuzzy parameters is passed successively Increase;Or the value of multiple superposition fuzzy parameters is successively decreased successively;Or the value of multiple superposition fuzzy parameters is first incremented by successively again Successively decrease successively;Or it is multiple it is described superposition fuzzy parameters values first successively decrease successively again it is incremented by successively.
15. one or more includes the non-volatile computer readable storage medium storing program for executing of computer executable instructions, when the calculating When machine executable instruction is executed by one or more processors so that the processor perform claim requires any one of 1 to 7 institute The control method stated.
16. a kind of computer equipment, including memory and processor, computer-readable instruction is stored in the memory, institute Instruction is stated when being executed by the processor so that the controlling party described in any one of described processor perform claim requirement 1 to 7 Method.
CN201810184571.3A 2018-03-06 2018-03-06 Terminal control method and device, readable storage medium and computer equipment Active CN108513062B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810184571.3A CN108513062B (en) 2018-03-06 2018-03-06 Terminal control method and device, readable storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810184571.3A CN108513062B (en) 2018-03-06 2018-03-06 Terminal control method and device, readable storage medium and computer equipment

Publications (2)

Publication Number Publication Date
CN108513062A true CN108513062A (en) 2018-09-07
CN108513062B CN108513062B (en) 2021-03-23

Family

ID=63377027

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810184571.3A Active CN108513062B (en) 2018-03-06 2018-03-06 Terminal control method and device, readable storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN108513062B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110087124A (en) * 2019-06-05 2019-08-02 聚好看科技股份有限公司 Long-range control method, terminal device and the smart television of smart television
CN110113526A (en) * 2019-04-22 2019-08-09 联想(北京)有限公司 Processing method, processing unit and electronic equipment
WO2021078269A1 (en) * 2019-10-25 2021-04-29 深圳市道通智能航空技术有限公司 Image processing method and apparatus, aerial camera and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202535464U (en) * 2012-02-27 2012-11-14 徐辰 Imaging device
CN103650480A (en) * 2011-07-14 2014-03-19 索尼公司 Image processing apparatus, image pickup apparatus, image processing method, and program
US20140240547A1 (en) * 2013-02-26 2014-08-28 GM Global Technology Operations LLC System and method for creating an image with a wide dynamic range
CN105183296A (en) * 2015-09-23 2015-12-23 腾讯科技(深圳)有限公司 Interactive interface display method and device
CN105264480A (en) * 2013-06-09 2016-01-20 苹果公司 Device, method, and graphical user interface for switching between camera interfaces
CN105578075A (en) * 2015-12-18 2016-05-11 广东欧珀移动通信有限公司 Method for generating high-dynamic range image, photographing device and terminal
CN105824515A (en) * 2016-03-22 2016-08-03 乐视网信息技术(北京)股份有限公司 Element display method and device
CN105959553A (en) * 2016-05-30 2016-09-21 维沃移动通信有限公司 Camera switching method and terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103650480A (en) * 2011-07-14 2014-03-19 索尼公司 Image processing apparatus, image pickup apparatus, image processing method, and program
CN202535464U (en) * 2012-02-27 2012-11-14 徐辰 Imaging device
US20140240547A1 (en) * 2013-02-26 2014-08-28 GM Global Technology Operations LLC System and method for creating an image with a wide dynamic range
CN105264480A (en) * 2013-06-09 2016-01-20 苹果公司 Device, method, and graphical user interface for switching between camera interfaces
CN105183296A (en) * 2015-09-23 2015-12-23 腾讯科技(深圳)有限公司 Interactive interface display method and device
CN105578075A (en) * 2015-12-18 2016-05-11 广东欧珀移动通信有限公司 Method for generating high-dynamic range image, photographing device and terminal
CN105824515A (en) * 2016-03-22 2016-08-03 乐视网信息技术(北京)股份有限公司 Element display method and device
CN105959553A (en) * 2016-05-30 2016-09-21 维沃移动通信有限公司 Camera switching method and terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110113526A (en) * 2019-04-22 2019-08-09 联想(北京)有限公司 Processing method, processing unit and electronic equipment
CN110087124A (en) * 2019-06-05 2019-08-02 聚好看科技股份有限公司 Long-range control method, terminal device and the smart television of smart television
WO2021078269A1 (en) * 2019-10-25 2021-04-29 深圳市道通智能航空技术有限公司 Image processing method and apparatus, aerial camera and storage medium

Also Published As

Publication number Publication date
CN108513062B (en) 2021-03-23

Similar Documents

Publication Publication Date Title
CN108322669B (en) Image acquisition method and apparatus, imaging apparatus, and readable storage medium
US11765466B2 (en) Imaging control method and apparatus, electronic device, and computer readable storage medium
US10805537B2 (en) Imaging control method, imaging device, and computer readable storage medium
CN108989700B (en) Imaging control method, imaging control device, electronic device, and computer-readable storage medium
EP3609177B1 (en) Control method, control apparatus, imaging device, and electronic device
CN109005342A (en) Panorama shooting method, device and imaging device
CN108833804A (en) Imaging method, device and electronic equipment
CN108683861A (en) Shoot exposal control method, device, imaging device and electronic equipment
CN108270977A (en) Control method and device, imaging device, computer equipment and readable storage medium storing program for executing
CN109068067A (en) Exposal control method, device and electronic equipment
CN108683862A (en) Image formation control method, device, electronic equipment and computer readable storage medium
CN108632537A (en) Control method and device, imaging device, computer equipment and readable storage medium storing program for executing
CN109040609A (en) Exposal control method, device and electronic equipment
CN107509044B (en) Image synthesis method, image synthesis device, computer-readable storage medium and computer equipment
CN109167930A (en) Image display method, device, electronic equipment and computer readable storage medium
CN109348088A (en) Image denoising method, device, electronic equipment and computer readable storage medium
CN109005343A (en) Control method, device, imaging device, electronic equipment and readable storage medium storing program for executing
CN108683863A (en) Image formation control method, device, electronic equipment and readable storage medium storing program for executing
CN109194855A (en) Imaging method, device and electronic equipment
US11601600B2 (en) Control method and electronic device
WO2020034702A1 (en) Control method, device, electronic equipment and computer readable storage medium
CN108833802A (en) Exposal control method, device and electronic equipment
CN107395991A (en) Image combining method, device, computer-readable recording medium and computer equipment
CN109040607A (en) Image formation control method, device, electronic equipment and computer readable storage medium
CN108900785A (en) Exposal control method, device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: Guangdong Opel Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant