CN107105158A - A kind of photographic method and mobile terminal - Google Patents

A kind of photographic method and mobile terminal Download PDF

Info

Publication number
CN107105158A
CN107105158A CN201710208386.9A CN201710208386A CN107105158A CN 107105158 A CN107105158 A CN 107105158A CN 201710208386 A CN201710208386 A CN 201710208386A CN 107105158 A CN107105158 A CN 107105158A
Authority
CN
China
Prior art keywords
data
camera
preview data
preview
focus location
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
CN201710208386.9A
Other languages
Chinese (zh)
Other versions
CN107105158B (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 CN201710208386.9A priority Critical patent/CN107105158B/en
Publication of CN107105158A publication Critical patent/CN107105158A/en
Application granted granted Critical
Publication of CN107105158B publication Critical patent/CN107105158B/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/67Focus control based on electronic image sensor signals

Landscapes

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

Abstract

The present invention provides a kind of photographic method and mobile terminal, and the photographic method is applied to the mobile terminal with the camera of shooting direction identical first and second camera, and the photographic method includes:Obtain the multiple focus location datas and the corresponding depth of field data of each focus location data of the collection of the first camera and the preview data of second camera collection;Default processing is carried out to preview data according to multiple focus location datas and the corresponding depth of field data of each focus location data, Multi-point focusing preview data is obtained;According to Multi-point focusing preview data, the image for generation Multi-point focusing of taking pictures.Such scheme, depth of field data, focus location data and the preview data gathered respectively using dual camera, obtain Multi-point focusing preview data, then picture of taking pictures is formed, solve the problem of existing camera device can not ensure the scenery multiple spot definition that user shoots, dual camera multiple spot is realized to focus on simultaneously, it is ensured that picture of taking pictures it is clear, improve the experience of taking pictures of user.

Description

A kind of photographic method and mobile terminal
Technical field
The present invention relates to technical field of mobile terminals, more particularly to a kind of photographic method and mobile terminal.
Background technology
With advances in technology with the development of society, intelligent movable equipment is more and more important in the life of people, It has become a part essential in people's life.And camera-enabled turns into the standard configuration of smart machine.But It is that current intelligent movable equipment is taken pictures and can only keep some focus, it is impossible to while keeping the clear of Multi-point focusing and focusing Clear degree, reduces the experience that user takes pictures.
The content of the invention
The technical problem to be solved in the present invention is to provide a kind of photographic method and mobile terminal, to solve existing shooting The problem of head apparatus can not ensure the scenery multiple spot definition that user shoots.
In order to solve the above-mentioned technical problem, the embodiment of the present invention provides a kind of photographic method, applied to shooting direction The mobile terminal of the camera of identical first and second camera, wherein, the photographic method includes:
Obtain the multiple focus location datas and the corresponding depth of field data of each focus location data of the first camera collection And the preview data of second camera collection;
Preview data is entered according to the multiple focus location data and each focus location data corresponding depth of field data The default processing of row, obtains Multi-point focusing preview data;
According to the Multi-point focusing preview data, the image for generation Multi-point focusing of taking pictures.
The embodiment of the present invention provides mobile terminal, including the camera of shooting direction identical first and second camera, its In, the mobile terminal, in addition to:
First acquisition module, multiple focus location datas and each focal position number for obtaining the collection of the first camera The preview data gathered according to corresponding depth of field data and second camera;
Second acquisition module, for according to the multiple focus location data and the corresponding depth of field of each focus location data Data carry out default processing to preview data, obtain Multi-point focusing preview data;
Photo module, for according to the Multi-point focusing preview data, the image for generation Multi-point focusing of taking pictures.
The beneficial effects of the invention are as follows:
Such scheme, the depth of field data gathered respectively by using dual camera, focus location data and preview data, Multi-point focusing preview data is obtained, the picture of taking pictures of Multi-point focusing is then formed, solving existing camera device can not protect The problem of demonstrate,proving the scenery multiple spot definition that user shoots, such a mode, the multiple spot for realizing dual camera is focused on simultaneously, it is ensured that Take pictures the clear of picture, improve the experience of taking pictures of user.
Brief description of the drawings
Fig. 1 represents the schematic flow sheet of the photographic method of first embodiment of the invention;
Fig. 2 represents the schematic flow sheet of the photographic method of second embodiment of the invention;
Fig. 3 represents the detailed process schematic diagram of the photographic method of second embodiment of the invention;
Fig. 4 is the structural representation one of the mobile terminal of third embodiment of the invention;
Fig. 5 is the structural representation two of the mobile terminal of third embodiment of the invention;
Fig. 6 is the structured flowchart of the mobile terminal of fourth embodiment of the invention;
Fig. 7 is the structural representation of the mobile terminal of fifth embodiment of the invention.
Embodiment
It is right below in conjunction with the accompanying drawings and the specific embodiments to make the object, technical solutions and advantages of the present invention clearer The present invention is described in detail.
The present invention for existing camera device can not ensure user shoot scenery multiple spot definition the problem of there is provided A kind of photographic method and mobile terminal.
First embodiment
As shown in figure 1, the flow chart of the photographic method for first embodiment of the invention.Bat is illustrated with reference to this figure According to the implementation process of method.
First embodiment of the invention provides a kind of photographic method, applied to the camera of shooting direction identical first and The mobile terminal of second camera, wherein, the photographic method includes:
Step 101, the multiple focus location datas and each focus location data for obtaining the collection of the first camera are corresponding Depth of field data and the preview data of second camera collection;
It should be noted that the first camera and second camera that the mobile terminal that this method is applied has answer position In the same side of mobile terminal, i.e. the first camera and second camera gather be same scene image, for example, this first Camera and second camera are rearmounted dual camera or preposition dual camera.
It should be noted that first camera is the secondary camera in dual camera, multiple focusing position described above Put data and refer at least two focus location datas, the focal position is usually that user is set manually, secondary camera needs Each focal position is gathered one by one, while obtaining the depth of field data set on mobile terminal, the so-called depth of field refers in camera lens forward position energy The subject longitudinal separation scope that the imaging of picture rich in detail is determined enough is obtained, after the completion of focusing, the model before and after focus It can be formed in enclosing clearly as this distance range one in front and one in back is just called the depth of field.The second camera is in dual camera Main camera, the main camera be mainly used to carry out preview screen collection.
Step 102, according to the multiple focus location data and the corresponding depth of field data of each focus location data to pre- Data of looking at carry out default processing, obtain Multi-point focusing preview data;
It should be noted that mainly used in this step depth of field data and focus location data to preview data at Reason synthesis, obtains Multi-point focusing preview data, multiple focus points is contained in the Multi-point focusing preview data.
Step 103, according to the Multi-point focusing preview data, the image for generation Multi-point focusing of taking pictures.
Perform before step 103, the photographing instruction that can be inputted according to user, the image for generation Multi-point focusing of then taking pictures; It can also be that user clicks on focal position manually, click on to automatically generate after a period of time after last focal position and taken pictures Instruction, the image for generation Multi-point focusing of being taken pictures according to the photographing instruction.
When user has carried out photographing operation, by using the Multi-point focusing preview data obtained in step 102, according to this Multi-point focusing preview data carries out the generation of photo, because the photo uses the mode of Multi-point focusing, therefore the photo of generation In include multiple clear positions, it is ensured that user shoot photo multiple spot definition.
Second embodiment
As shown in Fig. 2 the flow chart of the photographic method for second embodiment of the invention.Bat is illustrated with reference to this figure According to the implementation process of method.
Second embodiment of the invention provides a kind of photographic method, applied to the shifting with the first camera and second camera Dynamic terminal, wherein, the photographic method includes:
Step 201, the multiple focus location datas and each focus location data for obtaining the collection of the first camera are corresponding Depth of field data and the preview data of second camera collection;
It should be noted that the first camera and second camera that the mobile terminal that this method is applied has answer position In the same side of mobile terminal, i.e. the first camera and second camera gather be same scene image, for example, this first Camera and second camera are rearmounted dual camera or preposition dual camera.
It should be noted that first camera is the secondary camera in dual camera, multiple focusing position described above Put data and refer at least two focus location datas, the focal position is usually that user is set manually, secondary camera needs Each focal position is gathered one by one, while obtaining the depth of field data set on mobile terminal, the so-called depth of field refers in camera lens forward position energy The subject longitudinal separation scope that the imaging of picture rich in detail is determined enough is obtained, after the completion of focusing, the model before and after focus It can be formed in enclosing clearly as this distance range one in front and one in back is just called the depth of field.The second camera is in dual camera Main camera, the main camera be mainly used to carry out preview screen collection.
Step 202, whether the preview data gathered according to the second camera, judgement scene of taking pictures changes;
In the present embodiment, the main implementation whether scene change that judges to take pictures is:Obtain second shooting The preview data of the preview data of the present frame of head collection and the former frame adjacent with the preview data of present frame;If adjacent two The difference value of frame preview data is more than or equal to preset value, it is determined that scene of taking pictures is changed;If adjacent two frames preview number According to difference value be less than preset value, it is determined that scene of taking pictures does not change.View data is mainly used in this implementation Realization is compared in the similarity of frame, because user using mobile terminal during being taken pictures, and can have shake and cause front and rear figure As there is difference in data frame, in order to avoid because of shake and caused by scene error in judgement situation, in the present embodiment, entering During the setting of the preset value of row comparison, such case of shake should be taken into account.
Step 203, the depth of field data for gathering first camera if scene of taking pictures is changed and focusing position Put data and be zeroed out processing.
It should be noted that the mode because using Multi-point focusing in the present embodiment, it is generally the case that user can be to same One take pictures scene carry out multi-spot, when scene of taking pictures there occurs change, user can reset focal position, judge When there occurs change to scene of taking pictures, the depth of field data and focus location data that the first camera is gathered are zeroed out, and are protected User is demonstrate,proved after scene of taking pictures has been changed, the record data of a upper scene will not be impacted to current scene, be ensured with this The precision taken pictures.
Step 204, according to the multiple focus location data and the corresponding depth of field data of each focus location data to pre- Data of looking at carry out default processing, obtain Multi-point focusing preview data;
It should be noted that mainly used in this step depth of field data and focus location data to preview data at Reason synthesis, obtains Multi-point focusing preview data, multiple focus points is contained in the Multi-point focusing preview data.
Step 205, according to the Multi-point focusing preview data, the image for generation Multi-point focusing of taking pictures.
Perform before step 205, the photographing instruction that can be inputted according to user, the image for generation Multi-point focusing of then taking pictures; It can also be that user clicks on focal position manually, click on to automatically generate after a period of time after last focal position and taken pictures Instruction, the image for generation Multi-point focusing of being taken pictures according to the photographing instruction.
When user has carried out photographing operation, by using the Multi-point focusing preview data obtained in step 204, according to this Multi-point focusing preview data carries out the generation of photo, because the photo uses the mode of Multi-point focusing, therefore the photo of generation In include multiple clear positions, it is ensured that user shoot photo multiple spot definition.
It should be noted that step 204 is when implementing, the implementation used for:
According to phase focusing and the depth of field data of each focal position of collection, using the depth of field data respectively to every One focal position is focused processing, and the preview data and the preview data at current time after processing are merged, obtained Multi-point focusing preview data.
It should be noted that phase focusing (PDAF) is exactly that some masking pixels are reserved on photo-sensitive cell, it is special to use To carry out phase-detection, it is accurate right so as to realize that the deviant of focusing is determined by the distance between pixel and its change etc. It is burnt.It is typically to use lens separator system, and popular point is said, light exactly is divided into two beams, both sides are respectively radiated to corresponding In pixel, by detecting that signal and algorithm coordinate, degree of accuracy focusing position is determined.It is according to the scape collected in this implementation Deep data are focused to each focus point respectively, and these frames being focused respectively are then synthesized a frame, just real with this Multi-point focusing is showed.
It should be noted that the focus module that the realization of step 204 is relied primarily in camera module is realized.
Under normal circumstances, user is when being taken pictures, for the ease of user to the pre- preview for clapping image, mobile terminal it is pre- The picture for focusing on and completing can be shown in real time by looking in picture, therefore in the present embodiment, after step 204, the photographic method is also Including:
Control mobile terminal screen shows the Multi-point focusing preview data.
As shown in figure 3, below so that the rearmounted dual camera using mobile terminal is taken pictures as an example, the bat to the present embodiment According to method to implement procedure declaration as follows.
Step 301, detect user to perform after opening camera applications, open the rearmounted dual camera of mobile terminal;
Step 302, the multiple focus location datas for obtaining rearmounted secondary camera collection are corresponding with each focus location data Depth of field data;
Step 303, the preview data of rearmounted main camera collection is obtained;
Step 304, judge whether scene of taking pictures changes, if changing, perform step 305, otherwise perform step Rapid 306;
Step 305, the depth of field data and focus location data of rearmounted secondary camera collection are zeroed out processing, jumped to Step 302, continue to obtain depth of field data and focus location data that rearmounted secondary camera is recorded;
Step 306, according to multiple focus location datas and the corresponding depth of field data of each focus location data to preview number According to processing is focused, Multi-point focusing preview data is obtained;
Step 307, the display of Multi-point focusing preview data is carried out;
It should be noted that step 306 and step 307 are led it will be realized that the preview image by focusing is with working as The image of preceding preview carries out the preview image after being synthesized, and is shown.
Step 308, when detecting user and performing photographing operation, using Multi-point focusing preview data, carry out multiple spot and gather The generation of burnt image.
It should be noted that the embodiment of the present invention is in scene change, the clear of depth of field data and focus location data is carried out Zero processing, it is ensured that the precision taken pictures;The depth of field data that is gathered respectively by using dual camera, focus location data and Preview data, obtains Multi-point focusing preview data, then forms picture of taking pictures, solving existing dual camera equipment can not be real Existing multiple spot is focused on simultaneously, it is impossible to the problem of ensureing the scenery multiple spot definition that user shoots;The implementation of the embodiment of the present invention, The multiple spot for realizing dual camera is focused on simultaneously, it is ensured that picture of taking pictures it is clear, improve the experience of taking pictures of user.
3rd embodiment
As shown in figure 4, the structural representation of the mobile terminal for the embodiment of the present invention, should scheme and with reference to Fig. 5 pairs below Mobile terminal based on the photographic method is specifically described.
Third embodiment of the invention provides a kind of mobile terminal, including the camera of shooting direction identical first and second is taken the photograph As head, wherein, the mobile terminal, in addition to:
First acquisition module 401, for the multiple focus location datas for obtaining the collection of the first camera and each focusing position Put the preview data of the corresponding depth of field data of data and second camera collection;
Second acquisition module 402, for corresponding according to the multiple focus location data and each focus location data Depth of field data carries out default processing to preview data, obtains Multi-point focusing preview data;
Photo module 403, for according to the Multi-point focusing preview data, the image for generation Multi-point focusing of taking pictures.
Alternatively, the mobile terminal, in addition to:
Judge module 404, for the preview data gathered according to the second camera, whether judgement scene of taking pictures occurs Change;
Processing module 405, if being changed for scene of taking pictures, the depth of field data that first camera is gathered Processing is zeroed out with focus location data.
Specifically, the judge module 404 includes:
Acquiring unit 4041, the preview data and and present frame of the present frame for obtaining the second camera collection The adjacent former frame of preview data preview data;
First determining unit 4042, if the difference value for adjacent two frames preview data is more than or equal to preset value, really Surely scene of taking pictures is changed;
Second determining unit 4043, if the difference value for adjacent two frames preview data is less than preset value, it is determined that take pictures Scene does not change.
Specifically, second acquisition module 402 is used for:
According to phase focusing and the depth of field data of each focal position of collection, using the depth of field data respectively to every One focal position is focused processing, and the preview data and the preview data at current time after processing are merged, obtained Multi-point focusing preview data.
Alternatively, the mobile terminal, in addition to:
Control module 406, for controlling mobile terminal screen to show the Multi-point focusing preview data.
It should be noted that the mobile terminal embodiment is the mobile terminal corresponding with above-mentioned photographic method, above-mentioned bat According to method all implementations suitable for the mobile terminal embodiment, can also reach identical technique effect.
Fourth embodiment
As shown in fig. 6, the structured flowchart of the mobile terminal for the embodiment of the present invention.This hair is illustrated with reference to the figure The application entity of bright photographic method.
Mobile terminal 600 as shown in Figure 6 includes:At least one processor 601, memory 602, at least one network connect Mouth 604 and user interface 603.Each component in mobile terminal 600 is coupled by bus system 605.It is understood that total Linear system system 605 is used to realize the connection communication between these components.Bus system 605 in addition to including data/address bus, in addition to Power bus, controlling bus and status signal bus in addition.But for the sake of clear explanation, be in figure 6 all designated as various buses Bus system 605.
It should be noted that the mobile terminal 600 also has the camera of shooting direction identical first and second camera.
Wherein, user interface 603 can 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 602 in the embodiment of the present invention can be volatile memory or nonvolatile memory, Or may include both volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read-only storage (Read- Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable Device (Erasable PROM, EPROM), Electrically Erasable Read Only Memory (Electrically EPROM, EEPROM) or Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), and it is used as outside high Speed caching.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static RAM (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links Dynamic random access memory (Synch link DRAM, SLDRAM) and direct rambus random access memory (Direct Rambus RAM, DRRAM).The memory 602 of system and method described herein be intended to including but not limited to these and it is any its It is adapted to the memory of type.
In some embodiments, memory 602 stores following element, can perform module or data structure, or Their subset of person, or their superset:Operating system 6021 and application program 6022.
Wherein, operating system 6021, comprising various system programs, such as ccf layer, core library layer, driving layer, are used for Realize various basic businesses and handle hardware based task.Application program 6022, includes various application programs, such as media Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention The program of method may be embodied in application program 6022.
In embodiments of the present invention, can be specifically in application by calling program or the instruction of the storage of memory 602 The program stored in program 6022 or instruction, processor 601 are used for the multiple focus location datas for obtaining the collection of the first camera The preview data of depth of field data and second camera collection corresponding with each focus location data;Focused on according to the multiple Position data and the corresponding depth of field data of each focus location data carry out default processing to preview data, obtain Multi-point focusing pre- Look at data;According to the Multi-point focusing preview data, the image for generation Multi-point focusing of taking pictures.
The method that the embodiments of the present invention are disclosed can apply in processor 601, or be realized by processor 601. Processor 601 is probably a kind of IC chip, the disposal ability with signal.In implementation process, the above method it is each Step can be completed by the integrated logic circuit of the hardware in processor 601 or the instruction of software form.Above-mentioned processing Device 601 can be general processor, digital signal processor (Digital Signal Processor, DSP), special integrated electricity Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field Programmable Gate Array, FPGA) or other PLDs, discrete gate or transistor logic, Discrete hardware components.It can realize or perform disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general Processor can be microprocessor or the processor can also be any conventional processor etc..With reference to institute of the embodiment of the present invention The step of disclosed method, can be embodied directly in hardware decoding processor and perform completion, or with the hardware in decoding processor And software module combination performs completion.Software module can be located at random access memory, and flash memory, read-only storage may be programmed read-only In the ripe storage medium in this area such as memory or electrically erasable programmable memory, register.The storage medium is located at Memory 602, processor 601 reads the information in memory 602, the step of completing the above method with reference to its hardware.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its Combine to realize.Realized for hardware, processing unit can be realized in one or more application specific integrated circuit (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor, In controller, microcontroller, microprocessor, other electronic units for performing herein described function or its combination.
Realize, can be realized by performing the module (such as process, function) of function described herein herein for software Described technology.Software code is storable in memory and by computing device.Memory can within a processor or Realized outside processor.
Alternatively, the processor 601 is used for:The preview data gathered according to the second camera, judges scene of taking pictures Whether change;If scene of taking pictures is changed, the depth of field data and focal position that first camera is gathered Data are zeroed out processing.
Alternatively, the processor 601 is additionally operable to:Obtain the present frame of second camera collection preview data and The preview data of the former frame adjacent with the preview data of present frame;If the difference value of adjacent two frames preview data is more than or equal to Preset value, it is determined that scene of taking pictures is changed;If the difference value of adjacent two frames preview data is less than preset value, it is determined that clap Do not changed according to scene.
Alternatively, the processor 601 is additionally operable to:According to phase focusing and the depth of field number of each focal position of collection According to, processing is focused to each focal position respectively using the depth of field data, by the preview data after processing with it is current The preview data at moment is merged, and obtains Multi-point focusing preview data.
Alternatively, the processor 601 is additionally operable to:Control mobile terminal screen shows the Multi-point focusing preview data.
Mobile terminal 600 can realize each process that mobile terminal is realized in previous embodiment, to avoid repeating, here Repeat no more.
The embodiment of the present invention, multiple focus location datas that the first camera gathers are obtained and each by processor 601 The corresponding depth of field data of focus location data and the preview data of second camera collection;According to the multiple focal position number Default processing is carried out to preview data according to depth of field data corresponding with each focus location data, Multi-point focusing preview number is obtained According to;According to the Multi-point focusing preview data, the image for generation Multi-point focusing of taking pictures;It is same with the multiple spot that this realizes dual camera When focus on, it is ensured that picture of taking pictures it is clear, improve the experience of taking pictures of user.
5th embodiment
Fig. 7 is the structural representation of the mobile terminal of the embodiment of the present invention.Specifically, the mobile terminal in Fig. 7 can be Mobile phone, tablet personal computer, personal digital assistant (Personal Digital Assistant, PDA) or vehicle-mounted computer etc..
Mobile terminal in Fig. 7 includes radio frequency (Radio Frequency, RF) circuit 710, memory 720, input block 730th, display unit 740, processor 750, voicefrequency circuit 760, WiFi (Wireless Fidelity) modules 770 and power supply 780。
It should be noted that the mobile terminal also has the camera of shooting direction identical first and second camera.
Wherein, input block 730 can be used for the numeral or character information for receiving user's input, and produce and mobile terminal User set and function control it is relevant signal input.Specifically, in the embodiment of the present invention, the input block 730 can be with Including contact panel 731.Contact panel 731, also referred to as touch-screen, collect touch operation (ratio of the user on or near it Such as user uses the operation of finger, any suitable object of stylus or annex on contact panel 731), and according to setting in advance Fixed formula drives corresponding attachment means.Optionally, contact panel 731 may include touch detecting apparatus and touch controller two Individual part.Wherein, touch detecting apparatus detects the touch orientation of user, and detects the signal that touch operation is brought, and signal is passed Give touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, then Give the processor 750, and the order sent of reception processing device 750 and can be performed.Furthermore, it is possible to using resistance-type, electricity The polytypes such as appearance formula, infrared ray and surface acoustic wave realize contact panel 731.Except contact panel 731, input block 730 Other input equipments 732 can also be included, other input equipments 732 can include but is not limited to physical keyboard, function key (such as Volume control button, switch key etc.), trace ball, mouse, the one or more in action bars etc..
Wherein, display unit 740 can be used for information and the movement for showing the information inputted by user or being supplied to user The various menu interfaces of terminal.Display unit 740 may include display panel 741, optionally, can use LCD or organic light emission The forms such as diode (Organic Light-Emitting Diode, OLED) configure display panel 741.
It should be noted that contact panel 731 can cover display panel 741, touch display screen is formed, when touch display screen inspection Measure after the touch operation on or near it, processor 750 is sent to determine the type of touch event, with preprocessor 750 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 conventional control viewing area.The Application Program Interface viewing area And arrangement mode of the conventional control viewing area is not limited, can be arranged above and below, left-right situs etc. can distinguish two and show 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 element such as the icon comprising at least one application program and/or widget desktop controls.The Application Program Interface viewing area It can also be the empty interface not comprising any content.The conventional control viewing area is used to show the higher control of utilization rate, for example, Application icons such as settings button, interface numbering, scroll bar, phone directory icon etc..
Wherein processor 750 is the control centre of mobile terminal, utilizes each of various interfaces and connection whole mobile phone Individual part, by operation or performs and is stored in software program and/or module in first memory 721, and calls and be stored in Data in second memory 722, perform the various functions and processing data of mobile terminal, so as to be carried out to mobile terminal overall Monitoring.Optionally, processor 750 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 721 in software program and/or module and/ Or the data in the second memory 722, processor 750 be used for obtain the first camera collection multiple focus location datas and The preview data of each corresponding depth of field data of focus location data and second camera collection;According to the multiple focusing position Put data and the corresponding depth of field data of each focus location data and default processing is carried out to preview data, obtain Multi-point focusing preview Data;According to the Multi-point focusing preview data, the image for generation Multi-point focusing of taking pictures.
Alternatively, processor 750 is additionally operable to:The preview data gathered according to the second camera, judges scene of taking pictures Whether change;If scene of taking pictures is changed, the depth of field data and focal position that first camera is gathered Data are zeroed out processing.
Alternatively, processor 750 is additionally operable to:Obtain the present frame of second camera collection preview data and with The preview data of the adjacent former frame of the preview data of present frame;If the difference value of adjacent two frames preview data is more than or equal to pre- If value, it is determined that scene of taking pictures is changed;If the difference value of adjacent two frames preview data is less than preset value, it is determined that take pictures Scene does not change.
Alternatively, processor 750 is additionally operable to:According to phase focusing and the depth of field data of each focal position of collection, Processing is focused to each focal position respectively using the depth of field data, by the preview data after processing and current time Preview data merge, obtain Multi-point focusing preview data.
Alternatively, processor 750 is additionally operable to:Control mobile terminal screen shows the Multi-point focusing preview data.
The mobile terminal of the embodiment of the present invention can realize each process that mobile terminal is realized in previous embodiment, to keep away Exempt to repeat, repeat no more here.
The embodiment of the present invention, multiple focus location datas that the first camera gathers are obtained and each by processor 750 The corresponding depth of field data of focus location data and the preview data of second camera collection;According to the multiple focal position number Default processing is carried out to preview data according to depth of field data corresponding with each focus location data, Multi-point focusing preview number is obtained According to;According to the Multi-point focusing preview data, the image for generation Multi-point focusing of taking pictures;It is same with the multiple spot that this realizes dual camera When focus on, it is ensured that picture of taking pictures it is clear, improve the experience of taking pictures of user.
Each embodiment in this specification is described by the way of progressive, what each embodiment was stressed be with Between the difference of other embodiment, each embodiment identical similar part mutually referring to.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can be provided as method, device or calculate Machine program product.Therefore, the embodiment of the present invention can using complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can use it is one or more wherein include computer can With in the computer-usable storage medium (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code The form of the computer program product of implementation.
The embodiment of the present invention is with reference to method according to embodiments of the present invention, terminal device (system) and computer program The flow chart and/or block diagram of product is described.It should be understood that can be by computer program instructions implementation process figure and/or block diagram In each flow and/or square frame and the flow in flow chart and/or block diagram and/or the combination of square frame.These can be provided Computer program instructions are set to all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing terminals Standby processor is to produce a machine so that held by the processor of computer or other programmable data processing terminal equipments Capable instruction is produced for realizing in one flow of flow chart or multiple flows and/or one square frame of block diagram or multiple square frames The device for the function of specifying.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing terminal equipments In the computer-readable memory worked in a specific way so that the instruction being stored in the computer-readable memory produces bag The manufacture of command device is included, the command device is realized in one flow of flow chart or multiple flows and/or one side of block diagram The function of being specified in frame or multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing terminal equipments so that Series of operation steps is performed on computer or other programmable terminal equipments to produce computer implemented processing, so that The instruction performed on computer or other programmable terminal equipments is provided for realizing in one flow of flow chart or multiple flows And/or specified in one square frame of block diagram or multiple square frames function the step of.
Although having been described for the preferred embodiment of the embodiment of the present invention, those skilled in the art once know base This creative concept, then can make other change and modification to these embodiments.So, appended claims are intended to be construed to Including preferred embodiment and fall into having altered and changing for range of embodiment of the invention.
It should also be noted that, herein, such as first and second or the like relational terms are used merely to one Entity or operation make a distinction with another entity or operation, and not necessarily require or imply between these entities or operation There is any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to contain Lid nonexcludability is included, so that process, method, article or terminal device including a series of key elements not only include that A little key elements, but also other key elements including being not expressly set out, or also include be this process, method, article or The intrinsic key element of terminal device.In the absence of more restrictions, the key element limited by sentence "including a ...", and It is not precluded within the process including the key element, method, article or terminal device and also there is other identical element.
Above-described is the preferred embodiment of the present invention, it should be pointed out that come for the ordinary person of the art Say, some improvements and modifications can also be made under the premise of principle of the present invention is not departed from, and these improvements and modifications also exist In protection scope of the present invention.

Claims (10)

1. a kind of photographic method, applied to the mobile terminal with the camera of shooting direction identical first and second camera, Characterized in that, the photographic method includes:
Obtain the first camera collection multiple focus location datas and the corresponding depth of field data of each focus location data and The preview data of second camera collection;
Preview data is carried out according to the multiple focus location data and each focus location data corresponding depth of field data pre- If processing, Multi-point focusing preview data is obtained;
According to the Multi-point focusing preview data, the image for generation Multi-point focusing of taking pictures.
2. photographic method according to claim 1, it is characterised in that also include:
Whether the preview data gathered according to the second camera, judgement scene of taking pictures changes;
If scene of taking pictures is changed, the depth of field data and focus location data that first camera is gathered carry out clear Zero processing.
3. photographic method according to claim 2, it is characterised in that the preview gathered according to the second camera Data, judgement includes the step of whether scene changes of taking pictures:
Obtain the preview data of the present frame of second camera collection and adjacent with the preview data of present frame previous The preview data of frame;
If the difference value of adjacent two frames preview data is more than or equal to preset value, it is determined that scene of taking pictures is changed;
If the difference value of adjacent two frames preview data is less than preset value, it is determined that scene of taking pictures does not change.
4. photographic method according to claim 1, it is characterised in that described according to the multiple focus location data and every The corresponding depth of field data of individual focus location data carries out default processing, the step of obtaining Multi-point focusing preview data to preview data Including:
According to phase focusing and the depth of field data of each focal position of collection, using the depth of field data respectively to each Focal position is focused processing, and the preview data and the preview data at current time after processing are merged, multiple spot is obtained Focused preview data.
5. photographic method according to claim 1, it is characterised in that it is described according to the multiple focus location data and Each corresponding depth of field data of focus location data carries out default processing to preview data, obtains the step of Multi-point focusing preview data After rapid, the photographic method also includes:
Control mobile terminal screen shows the Multi-point focusing preview data.
6. a kind of mobile terminal, including the camera of shooting direction identical first and second camera, it is characterised in that the shifting Dynamic terminal, in addition to:
First acquisition module, multiple focus location datas and each focus location data pair for obtaining the collection of the first camera The preview data for depth of field data and the second camera collection answered;
Second acquisition module, for according to the multiple focus location data and the corresponding depth of field data of each focus location data Default processing is carried out to preview data, Multi-point focusing preview data is obtained;
Photo module, for according to the Multi-point focusing preview data, the image for generation Multi-point focusing of taking pictures.
7. mobile terminal according to claim 6, it is characterised in that also include:
Judge module, for the preview data gathered according to the second camera, whether judgement scene of taking pictures changes;
Processing module, the depth of field data for gathering first camera if being changed for scene of taking pictures and focusing Position data is zeroed out processing.
8. mobile terminal according to claim 7, it is characterised in that the judge module includes:
Acquiring unit, the preview number for the preview data of the present frame that obtains second camera collection and with present frame According to the preview data of adjacent former frame;
First determining unit, if the difference value for adjacent two frames preview data is more than or equal to preset value, it is determined that field of taking pictures Scape is changed;
Second determining unit, if the difference value for adjacent two frames preview data is less than preset value, it is determined that scene of taking pictures is not sent out Changing.
9. mobile terminal according to claim 6, it is characterised in that second acquisition module is used for:
According to phase focusing and the depth of field data of each focal position of collection, using the depth of field data respectively to each Focal position is focused processing, and the preview data and the preview data at current time after processing are merged, multiple spot is obtained Focused preview data.
10. mobile terminal according to claim 6, it is characterised in that also include:
Control module, for controlling mobile terminal screen to show the Multi-point focusing preview data.
CN201710208386.9A 2017-03-31 2017-03-31 Photographing method and mobile terminal Active CN107105158B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710208386.9A CN107105158B (en) 2017-03-31 2017-03-31 Photographing method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710208386.9A CN107105158B (en) 2017-03-31 2017-03-31 Photographing method and mobile terminal

Publications (2)

Publication Number Publication Date
CN107105158A true CN107105158A (en) 2017-08-29
CN107105158B CN107105158B (en) 2020-02-18

Family

ID=59676192

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710208386.9A Active CN107105158B (en) 2017-03-31 2017-03-31 Photographing method and mobile terminal

Country Status (1)

Country Link
CN (1) CN107105158B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111050078A (en) * 2019-12-26 2020-04-21 上海传英信息技术有限公司 Photographing method, mobile terminal and computer storage medium
CN115567783A (en) * 2022-08-29 2023-01-03 荣耀终端有限公司 Image processing method

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103873849A (en) * 2012-12-10 2014-06-18 联发科技股份有限公司 Method and apparatus for multi-camera photoing apparatus
CN104284085A (en) * 2013-07-08 2015-01-14 Lg电子株式会社 Electronic device and method of operating the same
CN104333703A (en) * 2014-11-28 2015-02-04 广东欧珀移动通信有限公司 Method and terminal for photographing by virtue of two cameras
CN104954695A (en) * 2015-07-14 2015-09-30 厦门美图之家科技有限公司 Focusing locking method and system for video shooting
CN105611182A (en) * 2014-11-25 2016-05-25 中兴通讯股份有限公司 Method and device for brightness compensation
US20160241776A1 (en) * 2015-02-13 2016-08-18 Samsung Electronics Co., Ltd. Device and method for detecting focus of electronic device
CN106331494A (en) * 2016-08-31 2017-01-11 郭裴哲 Cellphone dual-camera photographing system and method
CN106373110A (en) * 2016-11-30 2017-02-01 努比亚技术有限公司 Method and device for image fusion

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103873849A (en) * 2012-12-10 2014-06-18 联发科技股份有限公司 Method and apparatus for multi-camera photoing apparatus
CN104284085A (en) * 2013-07-08 2015-01-14 Lg电子株式会社 Electronic device and method of operating the same
CN105611182A (en) * 2014-11-25 2016-05-25 中兴通讯股份有限公司 Method and device for brightness compensation
CN104333703A (en) * 2014-11-28 2015-02-04 广东欧珀移动通信有限公司 Method and terminal for photographing by virtue of two cameras
US20160241776A1 (en) * 2015-02-13 2016-08-18 Samsung Electronics Co., Ltd. Device and method for detecting focus of electronic device
CN104954695A (en) * 2015-07-14 2015-09-30 厦门美图之家科技有限公司 Focusing locking method and system for video shooting
CN106331494A (en) * 2016-08-31 2017-01-11 郭裴哲 Cellphone dual-camera photographing system and method
CN106373110A (en) * 2016-11-30 2017-02-01 努比亚技术有限公司 Method and device for image fusion

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111050078A (en) * 2019-12-26 2020-04-21 上海传英信息技术有限公司 Photographing method, mobile terminal and computer storage medium
CN115567783A (en) * 2022-08-29 2023-01-03 荣耀终端有限公司 Image processing method
CN115567783B (en) * 2022-08-29 2023-10-24 荣耀终端有限公司 Image processing method

Also Published As

Publication number Publication date
CN107105158B (en) 2020-02-18

Similar Documents

Publication Publication Date Title
CN106506957A (en) A kind of photographic method and mobile terminal
CN105898143B (en) A kind of grasp shoot method and mobile terminal of moving object
CN106254682B (en) A kind of photographic method and mobile terminal
CN106231178B (en) A kind of self-timer method and mobile terminal
CN105827952A (en) Photographing method for removing specified object and mobile terminal
CN106101553B (en) A kind of photographic method and mobile terminal
CN106713764A (en) Photographic method and mobile terminal
CN107197169A (en) A kind of high dynamic range images image pickup method and mobile terminal
CN105847674A (en) Preview image processing method based on mobile terminal, and mobile terminal therein
CN107197170A (en) A kind of exposal control method and mobile terminal
CN107147837A (en) The method to set up and mobile terminal of a kind of acquisition parameters
CN106357961A (en) Photographing method and mobile terminal
CN107395998A (en) A kind of image capturing method and mobile terminal
CN107105160A (en) A kind of method, system and mobile terminal for starting camera
CN106454104A (en) Photographing method and mobile terminal
CN107147852A (en) Image capturing method, mobile terminal and computer-readable recording medium
CN107172361A (en) The method and mobile terminal of a kind of pan-shot
CN106993135B (en) A kind of photographic method and mobile terminal
CN107395926A (en) A kind of photographic method, mobile terminal and computer-readable recording medium
CN106791809B (en) A kind of light measuring method and mobile terminal
CN103002211A (en) Photographic device
CN106973222A (en) The control method and mobile terminal of a kind of Digital Zoom
CN107517345A (en) Shooting preview method and capture apparatus
CN107509040A (en) A kind of photographic method and mobile terminal
CN106888354A (en) A kind of singlehanded photographic method and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant