CN107222669B - A kind of method and mobile terminal of shooting - Google Patents

A kind of method and mobile terminal of shooting Download PDF

Info

Publication number
CN107222669B
CN107222669B CN201710527253.8A CN201710527253A CN107222669B CN 107222669 B CN107222669 B CN 107222669B CN 201710527253 A CN201710527253 A CN 201710527253A CN 107222669 B CN107222669 B CN 107222669B
Authority
CN
China
Prior art keywords
buffer queue
image
preview image
shooting
buffer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710527253.8A
Other languages
Chinese (zh)
Other versions
CN107222669A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710527253.8A priority Critical patent/CN107222669B/en
Publication of CN107222669A publication Critical patent/CN107222669A/en
Application granted granted Critical
Publication of CN107222669B publication Critical patent/CN107222669B/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/57Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/60Memory management
    • 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/617Upgrading or updating of programs or applications for camera control
    • 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/80Camera processing pipelines; Components thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Studio Devices (AREA)
  • Image Processing (AREA)

Abstract

The embodiment of the invention provides a kind of method of shooting and mobile terminals, which comprises at least two buffer queues of building;The circular buffer preview image at least two buffer queue;When receiving shooting instruction, the preview image of at least two buffer queue is combined, and target image is synthesized based on combined preview image.The time of multiframe preview image is obtained due to reducing using the embodiment of the present invention, so total consuming time of multiframe synthesis shooting can be promoted on the whole, promotes user experience.

Description

A kind of method and mobile terminal of shooting
Technical field
The present invention relates to fields of communication technology, and the method and a kind of mobile terminal more particularly to a kind of shooting are set.
Background technique
As the intelligent mobile terminals such as mobile phone are using more and more extensive, camera sensitive chip performance is constantly promoted, plus shifting The portability of dynamic terminal, camera on mobile terminal camera usually instead of the role of traditional camera, even slr camera, So that the camera application of mobile terminal is more and more wider.
In order to promote shooting effect, often using the algorithm, such as multiframe night scene etc. of the synthesis of some multiframes when shooting.But When the quick continuous several times shooting of user, due to being limited by crawl multiple image time and multiframe algorithm generated time, The time of shot to shot (being accomplished to shooting next time from last shooting to complete) can be very long, and user experience is poor.
For example, synthesizing under night scene environment using 6 frames, the frame per second of camera is 20fps (transmission frame per second under night scene environment Number, Frames Per Second), i.e., every frame time-consuming 50ms.It so grabs 6 frames and needs minimum 250ms, if multiframe algorithm 350ms is needed, this process at least needs 600ms that could complete.
Summary of the invention
The embodiment of the present invention provides the method and mobile terminal of a kind of shooting, to solve when being continuously shot, expends the time Too long problem.
In a first aspect, providing a kind of method of shooting, it is applied to mobile terminal, which comprises
Construct at least two buffer queues;
The circular buffer preview image at least two buffer queue;
When receiving shooting instruction, the preview image of at least two buffer queue is combined, and based on the pre- of combination Look at synthesis target image image.
Second aspect, provides a kind of mobile terminal, and the mobile terminal includes:
Buffer queue constructs module, for constructing at least two buffer queues;
Preview image cache module, for the circular buffer preview image at least two buffer queue;
Target image synthesis module, for combining the pre- of at least two buffer queue when receiving shooting instruction It lookes at image, and target image is synthesized based on combined preview image.
In this way, creating new caching in the embodiment of the present invention in conjunction with newly-increased DSP and taking frame mechanism, to realize that multiframe is closed It is quickly continuously shot at mode.Specifically, at least two buffer queues are constructed in the terminal, and in the buffer queue Middle circular buffer preview image, when receiving shooting instruction, so that it may be closed using the preview image being stored in buffer queue At target image, the time of multiframe preview image is obtained due to reducing, so multiframe synthesis shooting can be promoted on the whole Total consuming time, promoted user experience.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention Example, for those of ordinary skill in the art, without any creative labor, can also be according to these attached drawings Obtain other attached drawings.
Fig. 1 is a kind of step flow chart of the embodiment of the method for shooting of the embodiment of the present invention one;
Fig. 2 be the embodiment of the present invention a kind of external DSP of addition after shoot when data flow diagram;
Fig. 3 is a kind of step flow chart of the embodiment of the method for shooting of the embodiment of the present invention two;
Data cases schematic diagram in queue A and queue B when Fig. 4 is a kind of certain shooting of the embodiment of the present invention;
Fig. 5 be the embodiment of the present invention a kind of shooting after data cases schematic diagram in queue A and queue B;
Fig. 6 is queue A and queue B situation schematic diagram new after a kind of buffer of the embodiment of the present invention is recombinated;
Fig. 7 is a kind of structural block diagram of mobile terminal embodiment of the embodiment of the present invention two;
Fig. 8 is the block diagram of the mobile terminal of another embodiment of the present invention;
Fig. 9 is the structural schematic diagram of the mobile terminal of another embodiment of the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
Embodiment one
Referring to Fig.1, a kind of step flow chart of the embodiment of the method one of shooting of the invention is shown, is applied to mobile whole End, the method can specifically include following steps:
Step 101, at least two buffer queues are constructed;
Compared with prior art, creation of the embodiment of the present invention has new caching and takes frame mechanism.And in order to realize new delay Frame mechanism is deposited and taken, the number being connected with the sensor sensor of camera and image processor ISP is provided in mobile terminal Signal processor DSP.In general, the unit that ISP is used as the sensor output signal of camera to handle in the terminal, with matching The sensor of different vendor.
In practice, DSP can be set to mobile terminal in internal or external mode, mainly use external side below Formula is used as explanation in the application of the embodiment of the present invention for DSP.
It is located at the centre of sensor and ISP referring to Fig. 2, DSP, can be used for handling the data-signal from sensor;Together When, it can also will treated that data-signal is further sent to ISP continues to handle.
In embodiments of the present invention, when starting the camera of mobile terminal, so that it may start to construct buffer queue;When So, can also just start to construct buffer queue, the present invention when identifying current environment is to need to carry out the environment of multiframe synthesis Embodiment is to this without limiting.
Step 102, the circular buffer preview image at least two buffer queue;
After completing the building of buffer queue, before shooting, can in buffer queue circular buffer image, this is slow The image deposited is referred to here as preview image.
Step 103, when receiving shooting instruction, the preview image of at least two buffer queue is combined, and is based on Combined preview image synthesizes target image.
In practice, in camera when shooting environmental insufficient light, camera collected image noise it is more, Image blur, the image of better quality, takes multiframe preferentially composition algorithm in order to obtain.It is appreciated that institute may be shot every time The picture quality obtained is relatively poor, but by continuously clapping much images, then learns wildly from other's strong points and carry out multiframe synthesis, so that it may To obtain the image of a high quality.
The embodiment of the present invention is before executing shooting instruction, in two or more buffer queue circular buffer preview Image, in this way, if receiving shooting instruction, due to being stored with preview image in buffer queue, so that it may directly using slow The preview image in queue is deposited to synthesize target image, it is possible to reduce obtain the time of multiple preview images.
It should be noted that the embodiment of the present invention on the basis of hardware frame of original mobile terminal, adds DSP (Digital Signal Processing, digital signal processor), so that image data is entering ISP (Image Signal Processing, image signal process) before, it can be realized more image processing functions, promote the image matter of image data Amount.Specifically, there is sensor (sensor) in the camera module of camera, is provided with and camera in mobile terminal The DSP that sensor is connected with ISP.In general, the list that ISP is used as the sensor output signal of camera to handle in the terminal Member, to match the sensor of different vendor.
Wherein, between DSP, sensor and ISP, MIPI (Mobile Industry Processor can be passed through Interface, mobile industry processor interface) connection, MIPI by the interface of interior of mobile phone such as camera, display screen interface, penetrate The standardization such as frequently/baseband interface, it is possible to reduce the complexity and increase design flexibility of Cell Phone Design.Certainly, DSP, It can also be attached by other interfaces between sensor and ISP, the embodiment of the present invention need not be limit to this.
The DSP hardware module of the embodiment of the present invention, be the section RAW (such as to for the formats such as Bayer format RAW figure As being handled, RAW image is converted into the formats such as YUV due to not carrying out in ISP, and data volume is more, and detailed information is rich It is rich) image data carry out the operation such as denoising, allow image data before entering ISP, just there is relatively good noise to show, and Handle image data by DSP, relative to for ISP is handled speed it is fast, and DSP can also use many algorithms realize it is more Kind function.By pre-processing in DSP for image data, reduction reduces back-end processing difficulty in ISP treatment process, Finally obtain better image quality.
In the embodiment of the present invention, new caching is created in conjunction with newly-increased DSP and takes frame mechanism, to realize multiframe synthesis model Quickly it is continuously shot.Specifically, at least two buffer queues are constructed in the terminal, and are recycled in the buffer queue Preview image is cached, when receiving shooting instruction, so that it may synthesize target using the preview image being stored in buffer queue Image, the time of multiframe preview image is obtained due to reducing, so total consumption of multiframe synthesis shooting can be promoted on the whole It is time-consuming, promote user experience.
Embodiment two
Referring to Fig. 3, a kind of step flow chart of the method for shooting of the embodiment of the present invention two is shown, is applied to mobile whole End, the method can specifically include following steps:
Step 201, at least two buffer queues are constructed;
The embodiment of the present invention will construct buffer queue according to pre-defined rule and carry out image and delay after camera opens preview It deposits.
Referring to Fig. 2, DSP is set between sensor and ISP, is calculated with this to realize that the multiframe under the environment such as night scene synthesizes Method carrys out accelerating algorithm processing.It should be noted that being not to require to carry out multiframe synthesis under all scenes, only such as Under the scene of the darks such as night scene, just need to carry out multiframe synthesis based on external DSP.It specifically, generally can be as follows It is divided into two kinds of situations:
A, when under highlighted environment, when the viewdata signal of sensor passes through external DSP with no treatment, from taking the photograph As head sensor is transmitted directly to application processor.
B, it when under night scene environment, when the viewdata signal of sensor passes through external DSP, is saved as preview image Portion arrives the buffer queue in the DDR (Dual Data Rate, Double Data Rate synchronous DRAM) of DSP.Work as execution When shooting instruction, directly calculated using the preview image in DDR so that it is subsequent can be by multiple image Data Synthesis One frame, is then transferred to application processor by dsp interface.
Step 202, current environment parameter is obtained, the environmental parameter includes ambient brightness parameter;
In embodiments of the present invention, it can all go to obtain preview image in any environment and be stored in buffer queue, To carry out multiframe synthesis improving image quality.
But in practice, it can choose in order not to excessively expend mobile terminal resource and just carry out multiframe when having demand Synthesis, needs to acquire at this time current environment parameter, such as ambient brightness parameter.
Step 203, current shooting environment is determined using the current environment parameter;
After collecting current environment parameter, so that it may determine current shooting environment using current environment parameter.For example, such as Fruit is smaller according to ambient brightness parameter, can determine that current shooting environment is night scene.
Step 204, it if the current shooting environment is specified shooting environmental, is followed at least two buffer queue Ring caches preview image.
After determining current shooting environment, if further determining that the whether specified shooting environmental of the shooting environmental, if It is such as these specified shooting environmentals of night scene, then buffer queue can be used to start the cycle over caching preview image, after being used for It is continuous to carry out multiframe synthesis.
Specifically, if can then construct two buffer queues in advance, specifically using the synthesis night scene shooting of 6 frames It is referred to when a kind of shooting shown in Fig. 4 that data cases schematic diagram, each queue there are 6 pieces respectively in queue A and queue B Buffer (cache module).Two queues are respectively designated as queue A herein: shooting buffer queue;Queue B: standby caches team Column.
In the case where in night scene environment and no shooting, the realtime image data of queue A and queue B reception camera Be cyclically updated together, for example, if having carried out a frame image data, according to from A1~A6~B1~B6~A1 sequence successively Fill each buffer.
Step 205, when receiving shooting instruction, the preview image of at least two buffer queue is combined, and is based on Combined preview image synthesizes target image.
The embodiment of the present invention utilizes buffer queue circular buffer preview image before shooting.In this way, if receiving bat Take the photograph instruction, then carry out multiframe using the preview image that stores in buffer queue and synthesize to obtain target image, it is possible to reduce into Row multiframe obtains the time of multiple preview images when synthesizing.
In one preferred embodiment of the invention, at least two buffer queue may include the first buffer queue and Second buffer queue, the step 205 may include following sub-step:
When receiving the first shooting instruction, first buffer queue is locked;
Obtain the preview image in first buffer queue;
First object image is synthesized using the preview image in first buffer queue;
Unlock first buffer queue;
Meanwhile second buffer queue continues to cache preview image.
The embodiment of the present invention grabs multiple image from buffer queue and carries out when responding the first time shooting instruction of user The synthesis of night scene multiframe.
Assuming that when carrying out night scene shooting, data feelings in the queue A and queue B of queue A and situation such as Fig. 4 in queue B Shown in condition, wherein be stored with effective image data inside the representative buffer for thering is shade to fill in Fig. 4.After starting shooting 6 frame data in queue A are used to synthesize to external DSP night scene composition algorithm, lock queue A.
Data are locked during algorithm synthesis, in queue A no longer updates, and data continue to be normally carried out circulation in queue B Caching.It should be noted that normal preview is in the case where no shooting, queue A will not be locked, but it can be with queue B mono- It is same to be cyclically updated.Assuming that situation in latter two queue of night scene composition algorithm completion such as in the queue A and queue B of Fig. 5 Shown in data cases, continue to have updated 2 frame data in queue B in night scene composition algorithm treatment process.
In one preferred embodiment of the invention, the step 205 can also include following sub-step:
When receiving the second shooting instruction, the preview image in second buffer queue is obtained;
Preview image in second buffer queue is added in the first buffer queue;
Lock first buffer queue;
Second target image is synthesized using the preview image in first buffer queue;
After synthesizing the second target image, first buffer queue is unlocked;
Meanwhile continuing to cache preview image in second buffer queue.
In present example, this step is to carry out night scene multiframe in response to the crawl multiple image shooting instruction of user again Synthesis.
A kind of shooting situation is that user needs quick continuous several times shooting, after completing upper primary shooting, at once after It is continuous to be shot next time.
The prior art needs to grab 6 frame images, such as background again in the disposition of the quick continuous several times shooting of user If describing night scene environment camera frame per second in technology is 20fps, then every frame time 50ms, 6 frames of crawl need minimum 250ms, this A time be it is quite long, user experience can be seriously affected.
In order to solve problems in the prior art, weight is carried out to the buffer in queue A and queue B in embodiments of the present invention Group, referring in particular to queue A and queue B situation new after a kind of buffer recombination shown in fig. 6,3 will cached in Fig. 5 queue B The buffer of frame effective image data is put into the end of queue A, and 3 buffer of the beginning of queue A are then put into queue B's End.
In this way, directly being taken new in queue A when by executing new shooting instruction again after shooting instruction before completion 6 frame data continue to be given to external DSP night scene composition algorithm and synthesized, then lock new queue A, continue normal to update team Arrange B.Grab image frames again are not needed, then eliminate the 250ms time for grabbing frame.The embodiment of the present invention is by shortening multiframe synthesis The mode shot to shot time realizes that multiframe synthesis model is quickly continuously shot, significant increase user experience.
Due to the caching in the embodiment of the present invention and frame mechanism is taken to take frame every time when the shooting of quick continuous several times may be implemented It is zero time-consuming, while can use newly-increased DSP and carrying out multiframe algorithm process, promotes multiframe algorithm process speed.By excellent The time for changing the multiframe synthesis shooting (shot to shot) under the scenes such as night scene realizes that multiframe synthesis model is quickly continuously clapped It takes the photograph, significant increase user experience.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method It closes, but those skilled in the art should understand that, embodiment of that present invention are not limited by the describe sequence of actions, because according to According to the embodiment of the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also should Know, the embodiments described in the specification are all preferred embodiments, and the related movement not necessarily present invention is implemented Necessary to example.
Embodiment three
Referring to Fig. 7, a kind of structural block diagram of mobile terminal embodiment of the invention is shown, the mobile terminal specifically may be used To include following module:
Buffer queue constructs module 301, for constructing at least two buffer queues;
Preview image cache module 302, for the circular buffer preview image at least two buffer queue;
Target image synthesis module 303, for combining at least two buffer queue when receiving shooting instruction Preview image, and target image is synthesized based on combined preview image.
In one preferred embodiment of the invention, the mobile terminal can have at sensor sensor and image Manage the connected digital signal processor DSP of device ISP.
In one preferred embodiment of the invention, the DSP is internal or external at the mobile terminal.
In one preferred embodiment of the invention, the preview image cache module 302 may include following submodule:
Current environment parameter acquisition submodule, for obtaining current environment parameter, the environmental parameter includes ambient brightness Parameter;
Current shooting environment determines submodule, for determining current shooting environment using the current environment parameter;
Preview image cache sub-module, if be specified shooting environmental for the current shooting environment, it is described at least Circular buffer preview image in two buffer queues.
In one preferred embodiment of the invention, the target image synthesis module 303 may include following submodule:
First shooting command reception submodule, for when receiving the first shooting instruction, locking first caching team Column;
First sub- preview image obtains module, for obtaining the preview image in first buffer queue;
First object image synthesizes submodule, for synthesizing the first mesh using the preview image in first buffer queue Logo image;
First buffer queue unlocks submodule, for unlocking first buffer queue;
Meanwhile continuing to cache preview image in second buffer queue.
In one preferred embodiment of the invention, the target image synthesis module 303 may include following submodule:
Second shooting command reception submodule, for when receiving the second shooting instruction, obtaining second caching team Preview image in column;
Preview image adds submodule, for the preview image in second buffer queue to be added to the first caching team In column;
First buffer queue locks submodule, for locking first buffer queue;
Second target image synthesizes submodule, for synthesizing the second mesh using the preview image in first buffer queue Logo image;
Second buffer queue unlocks submodule, for unlocking first buffer queue after synthesizing the second target image;
Meanwhile continuing to cache preview image in second buffer queue.
For mobile terminal embodiment, since it is basically similar to the method embodiment, so be described relatively simple, The relevent part can refer to the partial explaination of embodiments of method.
In this way, creating new caching in the embodiment of the present invention in conjunction with newly-increased DSP and taking frame mechanism, to realize that multiframe is closed It is quickly continuously shot at mode.Specifically, at least two buffer queues are constructed in the terminal, and in the buffer queue Middle circular buffer preview image, when receiving shooting instruction, so that it may be closed using the preview image being stored in buffer queue At target image, the time of multiframe preview image is obtained due to reducing, so multiframe synthesis shooting can be promoted on the whole Total consuming time, promoted user experience.
Example IV
Fig. 8 is the block diagram of the mobile terminal of another embodiment of the present invention.Mobile terminal 700 shown in Fig. 8 includes: at least One processor 701, memory 702, at least one network interface 704 and other users interface 703.In mobile terminal 700 Various components are coupled by bus system 705.It is understood that bus system 705 is for realizing the company between these components Connect letter.Bus system 705 further includes power bus, control bus and status signal bus in addition in addition to including data/address bus.But It is that various buses are all designated as bus system 705 in fig. 8 for the sake of clear explanation.
Wherein, user interface 703 may include display, keyboard or pointing device (for example, mouse, trace ball (trackball), touch-sensitive plate or touch screen etc..
It is appreciated that the memory 702 in the embodiment of the present invention can be volatile memory or nonvolatile memory, It or may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (Read- OnlyMemory, ROM), programmable read only memory (ProgrammableROM, PROM), Erasable Programmable Read Only Memory EPROM (ErasablePROM, EPROM), electrically erasable programmable read-only memory (ElectricallyEPROM, EEPROM) dodge It deposits.Volatile memory can be random access memory (RandomAccessMemory, RAM), and it is slow to be used as external high speed It deposits.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random access memory (StaticRAM, SRAM), dynamic random access memory (DynamicRAM, DRAM), Synchronous Dynamic Random Access Memory (SynchronousDRAM, SDRAM), double data speed synchronous dynamic RAM (DoubleDataRate SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links Dynamic random access memory (SynchlinkDRAM, SLDRAM) and direct rambus random access memory (DirectRambusRAM, DRRAM).The memory 702 of the system and method for description of the embodiment of the present invention is intended to include but unlimited In the memory of these and any other suitable type.
In some embodiments, memory 702 stores following element, executable modules or data structures, or Their subset of person or their superset: operating system 7021 and application program 7022.
Wherein, operating system 7021 include various system programs, such as ccf layer, core library layer, driving layer etc., are used for Realize various basic businesses and the hardware based task of processing.Application program 7022 includes various application programs, such as media Player (MediaPlayer), browser (Browser) etc., for realizing various applied business.Realize embodiment of the present invention side The program of method may be embodied in application program 7022.
In embodiments of the present invention, by the program or instruction of calling memory 702 to store, specifically, can be application The program or instruction stored in program 7022, processor 701 is for constructing at least two buffer queues;It is slow described at least two Deposit circular buffer preview image in queue;When receiving shooting instruction, the preview graph of at least two buffer queue is combined Picture, and target image is synthesized based on combined preview image.
The method that the embodiments of the present invention disclose can be applied in processor 701, or be realized by processor 701. Processor 701 may be a kind of IC chip, the processing capacity with signal.During realization, the above method it is each Step can be completed by the integrated logic circuit of the hardware in processor 701 or the instruction of software form.Above-mentioned processing Device 701 can be general processor, digital signal processor (DigitalSignalProcessor, DSP), specific integrated circuit (ApplicationSpecific IntegratedCircuit, ASIC), ready-made programmable gate array (FieldProgrammableGateArray, FPGA) either other programmable logic device, discrete gate or transistor logic Device, discrete hardware components.It may be implemented or execute disclosed each method, step and the logical box in the embodiment of the present invention Figure.General processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with the present invention The step of method disclosed in embodiment, can be embodied directly in hardware decoding processor and execute completion, or use decoding processor In hardware and software module combination execute completion.Software module can be located at random access memory, and flash memory, read-only memory can In the storage medium of this fields such as program read-only memory or electrically erasable programmable memory, register maturation.The storage Medium is located at memory 702, and processor 701 reads the information in memory 702, and the step of the above method is completed in conjunction with its hardware Suddenly.
It is understood that the embodiment of the present invention description these embodiments can with hardware, software, firmware, middleware, Microcode or combinations thereof is realized.For hardware realization, processing unit be may be implemented in one or more specific integrated circuits (ApplicationSpecificIntegratedCircuits, ASIC), digital signal processor (DigitalSignalProcessing, DSP), digital signal processing appts (DSPDevice, DSPD), programmable logic device (ProgrammableLogicDevice, PLD), field programmable gate array (Field-ProgrammableGateArray, FPGA), general processor, controller, microcontroller, microprocessor, other electronics lists for executing herein described function In member or combinations thereof.
For software implementations, can by execute the embodiment of the present invention described in function module (such as process, function etc.) come Realize technology described in the embodiment of the present invention.Software code is storable in memory and is executed by processor.Memory can With portion realizes in the processor or outside the processor.
Optionally, processor 701 is used for: obtaining current environment parameter, the environmental parameter includes ambient brightness parameter;It adopts Current shooting environment is determined with the current environment parameter;If the current shooting environment is specified shooting environmental, described Circular buffer preview image at least two buffer queues.
Optionally, processor 701 is used for: when receiving the first shooting instruction, locking first buffer queue;It obtains Preview image in first buffer queue;First object figure is synthesized using the preview image in first buffer queue Picture;Unlock first buffer queue;Meanwhile continuing to cache preview image in second buffer queue.
Optionally, processor 701 is used for: when receiving the second shooting instruction, being obtained in second buffer queue Preview image;Preview image in second buffer queue is added in the first buffer queue;Lock first caching Queue;Second target image is synthesized using the preview image in first buffer queue;After synthesizing the second target image, solution Lock first buffer queue;Meanwhile continuing to cache preview image in second buffer queue.
Mobile terminal 700 can be realized each process that mobile terminal is realized in previous embodiment, to avoid repeating, here It repeats no more.
In this way, creating new caching in the embodiment of the present invention in conjunction with newly-increased DSP and taking frame mechanism, to realize that multiframe is closed It is quickly continuously shot at mode.Specifically, at least two buffer queues are constructed in the terminal, and in the buffer queue Middle circular buffer preview image, when receiving shooting instruction, so that it may be closed using the preview image being stored in buffer queue At target image, the time of multiframe preview image is obtained due to reducing, so multiframe synthesis shooting can be promoted on the whole Total consuming time, promoted user experience.
Embodiment five
Fig. 9 is the structural schematic diagram of the mobile terminal of another embodiment of the present invention.Specifically, the mobile terminal in Fig. 9 800 can be mobile phone, tablet computer, personal digital assistant (PersonalDigital Assistant, PDA) or vehicle-mounted computer Deng.
Mobile terminal 800 in Fig. 9 includes radio frequency (RadioFrequency, RF) circuit 810, memory 820, input list Member 830, display unit 840, processor 860, voicefrequency circuit 870, WiFi (WirelessFidelity) module 880 and power supply 890。
Wherein, input unit 830 can be used for receiving the number or character information of user's input, and generation and mobile terminal The related signal input of 800 user setting and function control.Specifically, in the embodiment of the present invention, which can To include touch panel 831.Touch panel 831, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses the operations of any suitable object or attachment on touch panel 831 such as finger, stylus), and according to preparatory The formula of setting drives corresponding attachment device.Optionally, touch panel 831 may include touch detecting apparatus and touch controller Two parts.Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected, by signal Send touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, The processor 860 is given again, and can be received order that processor 860 is sent and be executed.Furthermore, it is possible to using resistance-type, The multiple types such as condenser type, infrared ray and surface acoustic wave realize touch panel 831.In addition to touch panel 831, input unit 830 can also include other input equipments 832, other input equipments 832 can include but is not limited to physical keyboard, function key One of (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. are a variety of.
Wherein, display unit 840 can be used for showing information input by user or be supplied to the information and movement of user The various menu interfaces of terminal 800.Display unit 840 may include display panel 841, optionally, can use LCD or organic hair The forms such as optical diode (OrganicLight-EmittingDiode, OLED) configure display panel 841.
It should be noted that touch panel 831 can cover display panel 841, touch display screen is formed, when the touch display screen is examined After measuring touch operation on it or nearby, processor 860 is sent to determine the type of touch event, is followed by subsequent processing device 860 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and common control viewing area.The Application Program Interface viewing area And arrangement mode of the common control viewing area does not limit, can be arranged above and below, left-right situs etc. can distinguish two it is aobvious Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with The interface elements such as the icon comprising at least one application program and/or widget desktop control.The Application Program Interface viewing area Or the empty interface not comprising any content.This commonly uses control viewing area for showing the higher control of utilization rate, for example, Application icons such as button, interface number, scroll bar, phone directory icon etc. are set.
Wherein processor 860 is the control centre of mobile terminal 800, utilizes various interfaces and connection whole mobile phone Various pieces, by running or executing the software program and/or module that are stored in first memory 821, and calling storage Data in second memory 822 execute the various functions and processing data of mobile terminal 800, thus to mobile terminal 800 Carry out integral monitoring.Optionally, processor 860 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 821 in software program and/or module and/ Or the data in the second memory 822, processor 860 is for constructing at least two buffer queues;It is slow described at least two Deposit circular buffer preview image in queue;When receiving shooting instruction, the preview graph of at least two buffer queue is combined Picture, and target image is synthesized based on combined preview image.
Optionally, the processor 860 is also used to, and obtains current environment parameter, the environmental parameter includes ambient brightness Parameter;Current shooting environment is determined using the current environment parameter;If the current shooting environment is specified shooting environmental, The circular buffer preview image at least two buffer queue.
Optionally, the processor 860 is also used to, and when receiving the first shooting instruction, locks first caching team Column;Obtain the preview image in first buffer queue;Using the preview image synthesis first in first buffer queue Target image;Unlock first buffer queue;Meanwhile continuing to cache preview image in second buffer queue.
Optionally, the processor 860 is also used to, and when receiving the second shooting instruction, obtains second caching team Preview image in column;Preview image in second buffer queue is added in the first buffer queue;Lock described One buffer queue;Second target image is synthesized using the preview image in first buffer queue;Synthesizing the second target figure As after, first buffer queue is unlocked;Meanwhile continuing to cache preview image in second buffer queue.
For 800 embodiment of mobile terminal, since it is basically similar to the method embodiment, so the comparison of description is simple Single, the relevent part can refer to the partial explaination of embodiments of method.
In this way, creating new caching in the embodiment of the present invention in conjunction with newly-increased DSP and taking frame mechanism, to realize that multiframe is closed It is quickly continuously shot at mode.Specifically, at least two buffer queues are constructed in the terminal, and in the buffer queue Middle circular buffer preview image, when receiving shooting instruction, so that it may be closed using the preview image being stored in buffer queue At target image, the time of multiframe preview image is obtained due to reducing, so multiframe synthesis shooting can be promoted on the whole Total consuming time, promoted user experience.
Those of ordinary skill in the art may be aware that the embodiment in conjunction with disclosed in the embodiment of the present invention describe it is each Exemplary unit and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond the scope of this invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In embodiment provided herein, it should be understood that disclosed device and method can pass through others Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or unit It connects, 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, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, ROM, RAM, magnetic or disk etc. are various can store program code Medium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (10)

1. a kind of method of shooting is applied to mobile terminal, which is characterized in that the described method includes:
Construct at least two buffer queues;
The circular buffer preview image at least two buffer queue;
When receiving shooting instruction, the preview image of at least two buffer queue is combined, and based on combined preview graph As synthesis target image;The target image includes first object image;
Wherein, at least two buffer queue includes the first buffer queue and the second buffer queue, described to receive shooting When instruction, the preview image of described two at least buffer queues is combined, and based on combined preview image synthesis target image Step includes:
When receiving the first shooting instruction, first buffer queue is locked;
Obtain the preview image in first buffer queue;
First object image is synthesized using the preview image in first buffer queue;
Unlock first buffer queue;
Meanwhile continuing to cache preview image in second buffer queue.
2. the method according to claim 1, wherein the mobile terminal has and sensor sensor and image Processor ISP connected digital signal processor DSP.
3. according to the method described in claim 2, it is characterized in that, the DSP is internal or external at the mobile terminal.
4. the method according to claim 1, wherein described cache preview at least two buffer queue The step of image includes:
Current environment parameter is obtained, the environmental parameter includes ambient brightness parameter;
Current shooting environment is determined using the current environment parameter;
If the current shooting environment is specified shooting environmental, the circular buffer preview graph at least two buffer queue Picture.
5. according to the method described in claim 1, the target image further includes the second target image, which is characterized in that also wrap It includes:
When receiving the second shooting instruction, the preview image in second buffer queue is obtained;
Preview image in second buffer queue is added in the first buffer queue;
Lock first buffer queue;
Second target image is synthesized using the preview image in first buffer queue;
After synthesizing the second target image, first buffer queue is unlocked;
Meanwhile continuing to cache preview image in second buffer queue;
Wherein, second shooting instruction is after completing first shooting instruction, to continue in quick continuous several times shooting process The shooting instruction next time carried out;
Wherein, the step that the preview image by second buffer queue is added in the first buffer queue includes:
Preview image equal number of in second buffer queue is replaced into equal number of preview in the first buffer queue in order Image.
6. a kind of mobile terminal, which is characterized in that the mobile terminal includes:
Buffer queue constructs module, for constructing at least two buffer queues;
Preview image cache module, for the circular buffer preview image at least two buffer queue;
Target image synthesis module, for combining the preview graph of at least two buffer queue when receiving shooting instruction Picture, and target image is synthesized based on combined preview image;The target image includes first object image;
Wherein, at least two buffer queue includes the first buffer queue and the second buffer queue, the target image synthesis Module includes:
First shooting command reception submodule, for locking first buffer queue when receiving the first shooting instruction;
First sub- preview image obtains module, for obtaining the preview image in first buffer queue;
First object image synthesizes submodule, for synthesizing first object figure using the preview image in first buffer queue Picture;
First buffer queue unlocks submodule, for unlocking first buffer queue;
Meanwhile continuing to cache preview image in second buffer queue.
7. mobile terminal according to claim 6, which is characterized in that the mobile terminal have with sensor sensor and Image processor ISP connected digital signal processor DSP.
8. mobile terminal according to claim 7, which is characterized in that the DSP is internal or external at the mobile terminal.
9. mobile terminal according to claim 6, which is characterized in that the preview image cache module includes:
Current environment parameter acquisition submodule, for obtaining current environment parameter, the environmental parameter includes ambient brightness parameter;
Current shooting environment determines submodule, for determining current shooting environment using the current environment parameter;
Preview image cache sub-module, if be specified shooting environmental for the current shooting environment, described at least two Circular buffer preview image in buffer queue.
10. mobile terminal according to claim 6, the target image further includes the second target image, which is characterized in that Further include:
Second shooting command reception submodule, for obtaining in second buffer queue when receiving the second shooting instruction Preview image;
Preview image adds submodule, for the preview image in second buffer queue to be added to the first buffer queue In;
First buffer queue locks submodule, for locking first buffer queue;
Second target image synthesizes submodule, for synthesizing the second target figure using the preview image in first buffer queue Picture;
Second buffer queue unlocks submodule, for unlocking first buffer queue after synthesizing the second target image;
Meanwhile continuing to cache preview image in second buffer queue;
Wherein, second shooting instruction is after completing first shooting instruction, to continue in quick continuous several times shooting process The shooting instruction next time carried out;
Wherein, the preview image addition submodule is specifically used for:
Preview image equal number of in second buffer queue is replaced into equal number of preview in the first buffer queue in order Image.
CN201710527253.8A 2017-06-30 2017-06-30 A kind of method and mobile terminal of shooting Active CN107222669B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710527253.8A CN107222669B (en) 2017-06-30 2017-06-30 A kind of method and mobile terminal of shooting

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710527253.8A CN107222669B (en) 2017-06-30 2017-06-30 A kind of method and mobile terminal of shooting

Publications (2)

Publication Number Publication Date
CN107222669A CN107222669A (en) 2017-09-29
CN107222669B true CN107222669B (en) 2019-01-25

Family

ID=59951574

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710527253.8A Active CN107222669B (en) 2017-06-30 2017-06-30 A kind of method and mobile terminal of shooting

Country Status (1)

Country Link
CN (1) CN107222669B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108012084A (en) * 2017-12-14 2018-05-08 维沃移动通信有限公司 A kind of image generating method, application processor AP and third party's picture processing chip
CN110049241A (en) * 2019-04-09 2019-07-23 Oppo广东移动通信有限公司 Image processing method, device, storage medium and electronic equipment
CN109993722B (en) * 2019-04-09 2023-04-18 Oppo广东移动通信有限公司 Image processing method, image processing device, storage medium and electronic equipment
CN112291475B (en) * 2020-10-30 2022-04-12 维沃移动通信(杭州)有限公司 Photographing method and device and electronic equipment
CN112312023B (en) * 2020-10-30 2022-04-08 北京小米移动软件有限公司 Camera buffer queue allocation method and device, electronic equipment and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2632725Y (en) * 2003-07-02 2004-08-11 马堃 Portable camera apparatus with panoramic camera function
JP6020904B2 (en) * 2012-02-01 2016-11-02 パナソニックIpマネジメント株式会社 Image processing apparatus and imaging apparatus
CN103618855A (en) * 2013-12-03 2014-03-05 厦门美图移动科技有限公司 Photographing method and device for automatically selecting optimal image
JP6877815B2 (en) * 2014-10-17 2021-05-26 日本無線株式会社 Image generator
CN105578061A (en) * 2016-02-25 2016-05-11 广东欧珀移动通信有限公司 Anti-shaking method and device for photographing, and mobile terminal
CN105868123B (en) * 2016-04-07 2018-10-09 武汉数字派特科技有限公司 A kind of buffer storage and method of concurrent data
CN106060406B (en) * 2016-07-27 2020-03-06 维沃移动通信有限公司 Photographing method and mobile terminal

Also Published As

Publication number Publication date
CN107222669A (en) 2017-09-29

Similar Documents

Publication Publication Date Title
CN107222669B (en) A kind of method and mobile terminal of shooting
CN105827971B (en) A kind of image processing method and mobile terminal
CN105872148B (en) A kind of generation method and mobile terminal of high dynamic range images
CN107222680A (en) The image pickup method and mobile terminal of a kind of panoramic picture
CN105827965B (en) A kind of image processing method and mobile terminal based on mobile terminal
CN107395976B (en) A kind of acquisition parameters setting method and mobile terminal
CN105827754B (en) A kind of generation method and mobile terminal of high dynamic range images
CN107231530B (en) A kind of photographic method and mobile terminal
CN106937052B (en) A kind of processing method and mobile terminal of image data
CN107172361B (en) A kind of method and mobile terminal of pan-shot
CN107205119B (en) A kind for the treatment of method and apparatus of image data
CN107277353B (en) A kind of method taken pictures and mobile terminal
CN105979157B (en) A kind of screening-mode switching method and mobile terminal
CN106101544B (en) A kind of image processing method and mobile terminal
CN106534685A (en) Panoramic image generation method and mobile terminal
CN107395898A (en) A kind of image pickup method and mobile terminal
CN107222681B (en) A kind of processing method and mobile terminal of image data
CN106506962A (en) A kind of image processing method and mobile terminal
CN105959574B (en) A kind of photographic method and mobile terminal
CN106101545A (en) A kind of image processing method and mobile terminal
CN107222679A (en) The processing method and mobile terminal of a kind of view data
CN108737739A (en) A kind of preview screen acquisition method, preview screen harvester and electronic equipment
CN105979155A (en) Photographing method and mobile terminal
CN106713659B (en) A kind of panorama shooting method and mobile terminal
CN107592568B (en) A kind of video broadcasting method and terminal device

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