CN107592453B - A kind of image pickup method and mobile terminal - Google Patents

A kind of image pickup method and mobile terminal Download PDF

Info

Publication number
CN107592453B
CN107592453B CN201710803154.8A CN201710803154A CN107592453B CN 107592453 B CN107592453 B CN 107592453B CN 201710803154 A CN201710803154 A CN 201710803154A CN 107592453 B CN107592453 B CN 107592453B
Authority
CN
China
Prior art keywords
camera
scene detection
image
detection results
scene
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
CN201710803154.8A
Other languages
Chinese (zh)
Other versions
CN107592453A (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 CN201710803154.8A priority Critical patent/CN107592453B/en
Publication of CN107592453A publication Critical patent/CN107592453A/en
Application granted granted Critical
Publication of CN107592453B publication Critical patent/CN107592453B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Studio Devices (AREA)

Abstract

The present invention provides a kind of image pickup method and mobile terminal, this method comprises: the first camera of control acquires preview image;It controls second camera and carries out photographed scene detection on backstage, obtain the first scene detection results;Based on first scene detection results, image procossing is carried out to the preview image of first camera acquisition.The reliability of scene detection had both can be improved in the present invention, can also be improved the quality of preview image.

Description

A kind of image pickup method and mobile terminal
Technical field
The present invention relates to field of communication technology more particularly to a kind of image pickup methods and mobile terminal.
Background technique
Currently, the mobile communication terminals such as mobile phone all have camera function, and with advances in technology, mobile terminal can be with Photographed scene detection is carried out using the preview image of camera acquisition, obtains the type of photographed scene.
The prior art in shooting process, scene detection is carried out in shooting preview, obtains scene detection results, is being detected It is pressed to user after taking pictures button, then shoots an image, the corresponding image of scene detection results is carried out to the image of shooting Processing carries out image recognition analysis since current scene-detection algorithms are all based on image, and at the image after scene detection Reason effect just comes into force after shooting is completed, and in the case where preview image data has reverse change, can scene detection be calculated Method failure causes preview image that the variation and flashing of shooting effect frequently constantly occurs.
Summary of the invention
The embodiment of the present invention provides a kind of image pickup method and mobile terminal, to solve in the prior art in preview image data In the case where having reverse change, scene-detection algorithms failure causes preview image that the variation of shooting effect frequently constantly occurs The problem of with flashing.
In a first aspect, this is applied to be provided with according to preview display method the embodiment of the invention provides a kind of image pickup method The mobile terminal of first camera and second camera, this includes: according to preview display method
Control the first camera acquisition preview image;
It controls second camera and carries out photographed scene detection on backstage, obtain the first scene detection results;
Based on first scene detection results, image procossing is carried out to the preview image of first camera acquisition.
Second aspect, the embodiment of the present invention also provide a kind of mobile terminal, the mobile terminal be provided with the first camera and Second camera, comprising:
First control module acquires preview image for controlling the first camera;
Second control module carries out photographed scene detection on backstage for controlling second camera, obtains the inspection of the first scene Survey result;
Processing module, for being based on first scene detection results, to the preview image of first camera acquisition Carry out image procossing.
The third aspect, the embodiment of the present invention also provide a kind of mobile terminal, the mobile terminal include processor, memory and It is stored in the computer program that can be run on the memory and on the processor, the computer program is by the processing The step of device realizes image pickup method as described above when executing.
Fourth aspect, the embodiment of the present invention also provide a kind of computer readable storage medium, the computer-readable storage medium Computer program is stored in matter, the computer program realizes the step of image pickup method as described above when being executed by processor Suddenly.
In embodiments of the present invention, the first camera of control acquires preview image;Second camera is controlled to carry out on backstage Photographed scene detection, obtains the first scene detection results;Based on first scene detection results, first camera is adopted The preview image of collection carries out image procossing.It is different from the prior art, the present invention is being clapped from the background using control second camera Scene detection is taken the photograph, the first obtained scene detection results carry out image procossing to the preview image of the first camera acquisition, thus The interference that can be detected to avoid the preview image after image procossing to photographed scene, both can be improved the reliability of scene detection, It can also be improved the quality of preview image.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, needed in being described below to the embodiment of the present invention Attached drawing to be used is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, For those of ordinary skill in the art, without any creative labor, it can also obtain according to these attached drawings Obtain other attached drawings.
Fig. 1 is one of the flow chart of image pickup method provided in an embodiment of the present invention;
Fig. 2 is the two of the flow chart of image pickup method provided in an embodiment of the present invention;
Fig. 3 is one of the structure chart of mobile terminal provided in an embodiment of the present invention;
Fig. 4 is the two of the structure chart of mobile terminal provided in an embodiment of the present invention;
Fig. 5 is the three of the structure chart of mobile terminal provided in an embodiment of the present invention;
Fig. 6 is the four of the structure chart of mobile terminal provided in an embodiment of the present invention;
Fig. 7 is the five of the structure chart of mobile terminal provided in an embodiment of the present invention;
Fig. 8 is the six of the structure chart of mobile terminal provided in an embodiment of the present 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.
In the embodiment of the present invention, mobile terminal is provided with the first camera and second camera.Wherein, the first camera is adopted The image of collection is mainly used for showing, so that user carries out preview of taking pictures;The image of second camera acquisition is mainly used for scene inspection It surveys, obtains current photographed scene.Mobile terminal can be mobile phone, tablet computer (Tablet Personal Computer), Laptop computer (Laptop Computer), personal digital assistant (personal digital assistant, abbreviation PDA), Mobile Internet access device (Mobile Internet Device, MID) or wearable device (Wearable Device) etc..
Image pickup method in the embodiment of the present invention carries out photographed scene detection using the image of second camera acquisition, obtains To the first scene detection results, and according to above-mentioned first scene detection results, the preview image of the first camera acquisition is carried out Scene both can be improved so as to the interference for avoiding the preview image after image procossing from detecting photographed scene in image procossing The reliability of detection can also be improved the quality of preview image.
It is one of the flow chart of image pickup method provided in an embodiment of the present invention referring to Fig. 1, Fig. 1, as shown in Figure 1, this implementation Example image pickup method the following steps are included:
Step 101, the first camera of control acquire preview image.
In the present embodiment, mobile terminal can open the first camera and second after detecting that camera is activated simultaneously Camera, to acquire image respectively.Wherein, the image of the first camera of control acquisition is used to be shown in the display screen of mobile terminal On, for user's preview.
Step 102, control second camera carry out photographed scene detection on backstage, obtain the first scene detection results.
In the step, mobile terminal controls second camera and acquires preview image, and on backstage, i.e., utilizes in control system The collected preview image of second camera carries out photographed scene detection, obtains the scene type under current environment, i.e., first Scape testing result improves the obtained accuracy rate of scene type.
Specifically, mobile terminal can be by the different parameters in preview image that second camera acquires, to obtain the First scene detection results of the preview image of two cameras acquisition, such as: pass through the preview graph of detection second camera acquisition The brightness of picture judges whether the first scene detection results are night scene scene;It can be by the preview graph that is acquired to second camera The quantity of bright pixel and dark pixel as in is counted compared with, to judge whether the first scene detection results are backlight field Scape;It can be compared by the size of the pixel value of the preview image acquired to second camera in adjacent moment, to judge Whether the first scene detection results are moving scene.Certainly, in other embodiments, can also be collected by second camera The other parameters of preview image judge whether the first scene detection results belong to other kinds of scene, the embodiment of the present invention This is not construed as limiting.Correspondingly, in the embodiment of the present invention, the first scene detection results can be above-mentioned night-time scene, backlight Scene or moving scene can also be the other kinds of scene results such as indoor scene or scene rainy days.
Step 103 is based on first scene detection results, carries out figure to the preview image of first camera acquisition As processing.
In the embodiment of the present invention, mobile terminal can be based on first scene detection results, at different images Adjustment method carries out image procossing to the preview image that first camera acquires.Such as: for night scene scene, the first camera The noise of the preview image of acquisition is more, and brightness is lower, multiframe composition algorithm can be carried out promoted shooting image brightness with Signal-to-noise ratio;For backlight scene, the preview image light and shade contrast of the first camera acquisition is strong, can carry out high dynamic illumination wash with watercolours Contaminating image (High-Dynamic Range, abbreviation HDR) algorithm to obtain high dynamic range images, i.e., bright place is unlikely to overexposure, And dark place can see details clearly;For moving scene, the preview image of the first camera acquisition is easy to obscure, and can carry out anti- Algorithm is trembled to reduce the fuzziness of shooting image.So as to improve the quality for the preview image that the first camera acquires.
Certainly, mobile terminal can also determine Image Processing parameter according to the first scene detection results, determining to use Image Processing parameter carries out image procossing to the preview image of first camera acquisition, to improve above-mentioned preview image Quality.
It should be understood that mobile terminal can carry out image procossing in the preview image acquired to first camera Afterwards, the preview image of the first camera acquisition is just shown on a display screen;Mobile terminal can also be collected in the first camera After preview image, preview image is shown, then be based on first scene detection results, the preview to first camera acquisition Image carries out image procossing.The embodiment of the present invention is not construed as limiting this.
In addition, mobile terminal can adjust the parameter of the first camera according to the first scene detection results, such as: when exposure Between, sensitivity and aperture etc..In this way, the collected preview image of the first camera being different from before adjusting parameter, adjusting parameter The quality of the collected preview image of the first camera afterwards is improved, and quality is preferable.It is night scene scene with target scene For be illustrated, since environment is darker at this time, light is weaker, can according to night scene scene, adjust the first camera exposure Time and sensitivity promote the brightness of preview image, improve the quality of preview image.
In the prior art, the image of camera acquisition is used for preview and scene detection simultaneously, it is assumed that detects current scene Night scene scene promotes the brightness of preview image, then scene-detection algorithms are according to excellent if optimizing processing to preview image at this time The scene changed treated, preview image detects does not meet night scene scene, and the reliability of scene detection is low, and is easy to cause pre- Image of looking at generates frequently continuous effect variation and flashing.And in embodiments of the present invention, mobile terminal passes through second camera Collected preview image obtains the first scene detection results, and is acquired based on first scene detection results to the first camera The image arrived carries out image procossing.Therefore, it is different from the prior art, the present invention can be to avoid targets preview image to scene detection Interference can also be improved the quality of the preview image of display so that the reliability of scene detection both can be improved.
In the embodiment of the present invention, mobile terminal, can be by the first scene detection knot after obtaining the first scene detection results Fruit information feeds back to the first camera.Specifically, the first scene detection results information can be the table of the first scene detection results Sign form.In the particular embodiment, the forms of characterization of the first scene detection results can be numerical value, i.e., represented with different values The first different scene detection results, such as: night scene scene is represented with " 1 ", " 2 " represent backlight scene, and " 3 " represent moving scene Deng in this way, the first camera is when reading occurrence, so that it may which the mapping by searching for preset value and scene type is closed System, obtains the corresponding scene type of the value, i.e. the first scene detection results.Certainly, in other embodiments, the first scene detection As a result it can also be characterized by other forms, the embodiment of the present invention is not construed as limiting this.
In the embodiment of the present invention, the first camera can based on camera;Second camera can be secondary camera, i.e., auxiliary Help camera.
The image pickup method of the present embodiment, the first camera of control acquire preview image;Control second camera backstage into The detection of row photographed scene, obtains the first scene detection results;Based on first scene detection results, to first camera The preview image of acquisition carries out image procossing.It is different from the prior art, the present invention is carried out using control second camera on backstage Photographed scene detection, the first obtained scene detection results carry out image procossing to the preview image of the first camera acquisition, from And the interference that photographed scene can be detected to avoid the preview image after image procossing, the reliable of scene detection both can be improved Property, it can also be improved the quality of preview image.
Referring to fig. 2, Fig. 2 is the two of the flow chart of image pickup method provided in an embodiment of the present invention, the present embodiment and above-mentioned reality It applies the second of example and to distinguish and be, carry out photographed scene detection on backstage in the control second camera, obtain the first scene Before the step of testing result, further restriction has been made to image pickup method, specifically: to the pre- of first camera acquisition Image of looking at carries out photographed scene detection, obtains the second scene detection results;Judge whether second scene detection results are pre- If scene type;If second scene detection results be preset scene type, control second camera backstage into The detection of row photographed scene, obtains the first scene detection results.
As shown in Figure 2, comprising the following steps:
Step 201, the first camera of control acquire preview image.
It is different from above method embodiment, in the present embodiment, mobile terminal is first opened after detecting that camera is activated First camera, second camera is still in closed state.
The step is identical as the step 101 in above method embodiment, specifically refers to the description in above-described embodiment, is It avoids repeating, details are not described herein.
Step 202 carries out photographed scene detection to the preview image of first camera acquisition, obtains the inspection of the second scene Survey result.
The step is similar with the step 102 in above method embodiment, and difference is, the first camera is utilized in the step Collected preview image carries out photographed scene detection, obtains the second scene detection results, therefore, specifically refers to above-mentioned implementation Description in example, to avoid repeating, details are not described herein.
Step 203 judges whether second scene detection results are preset scene type.
In the step, preset scene type can with but be not limited only to include night scene scene, backlight scene or moving scene, It should be understood that default scene can determine that the embodiment of the present invention is not construed as limiting this according to actual needs.If the second scene is examined Survey result is preset scene type, illustrates the second-rate of the preview image of second camera acquisition at this time, needs to preview Image optimizes processing.
In the present embodiment, if second scene detection results belong to preset scene type, second camera is opened, And execute step 204;If second scene detection results are not belonging to preset scene type, and do not receive photographing instruction, Step 202 and step 203 can be then repeated, and second camera is kept to be in close state, until the second scene detection As a result belong to preset scene type.So as to save the power consumption of mobile terminal.
If step 204, second scene detection results are preset scene type, second camera is controlled on backstage Photographed scene detection is carried out, the first scene detection results are obtained.
The step is identical as the step 102 in above method embodiment, specifically refers to the description in above-described embodiment, is It avoids repeating, details are not described herein.
Step 205 is based on first scene detection results, carries out figure to the preview image of first camera acquisition As processing.
The step is identical as the step 103 in above method embodiment, specifically refers to the description in above-described embodiment, is It avoids repeating, details are not described herein.
In addition, if the first obtained scene detection results are not belonging to above-mentioned preset scene type, illustrate at this time The preview image quality of one camera acquisition is preferable, does not need to carry out effect optimization to it, so as to close the first camera, It re-execute the steps 201.So as to save the power consumption of mobile terminal.
The image pickup method of the present embodiment, the interference that photographed scene can be detected to avoid the preview image after image procossing, Both the reliability that scene detection can be improved can also be improved the quality of preview image.In addition, mobile terminal is taken the photograph in unlatching first As carrying out scene detection of taking pictures using the preview image that the first camera acquires, obtaining the second scene detection results before head, and Determine the second testing result be preset scene type when, just open second camera, control second camera backstage into The detection of row photographed scene obtains the first scene detection results, and is based on first scene detection results, to first camera shooting The preview image of head acquisition carries out image procossing.So as to save the power consumption of mobile terminal.
Optionally, the control second camera carries out photographed scene detection on backstage, obtains the first scene detection results The step of, comprising:
It controls second camera and preview image is acquired according to preset preview size;
Photographed scene detection is carried out to the preview image of second camera acquisition, obtains the first scene detection results.
In the step, it is contemplated that the preview image of second camera acquisition is detected for photographed scene, is not used in display.Cause This, can be preset preview size by the preview size adjusting of the first camera, control second camera according to preset pre- Size of looking at acquires preview image, carries out photographed scene detection to the preview image of second camera acquisition, obtains first Scape testing result.To improve the detection efficiency of photographed scene detection, the operating load of mobile terminal is reduced.Wherein, above-mentioned pre- If preview size less than the first camera preview size, such as: the preview of the first camera having a size of 960*640 pixel, Then preset preview size can be 640*480 pixel.
Optionally, it is described be based on first scene detection results, to first camera acquisition preview image into The step of row image procossing, comprising:
Determine the associated Image Processing parameter of the first scene detection results;
According to described image processing parameter, image procossing is carried out to the preview image of first camera acquisition.
For convenience of understanding, it is illustrated so that the first scene detection results are night scene scene as an example, can determines night scene scene Associated Image Processing parameter be brightness, mobile terminal can by improve the first camera acquisition preview image brightness, Realize the image procossing of the preview image acquired to first camera.For the first scene detection knot of other scene types Fruit can be handled using corresponding mode, and the embodiment of the present invention is not construed as limiting this.
It is described be based on first scene detection results, to first preview image carry out image procossing the step of it Afterwards, further includes:
If receiving photographing instruction, the frame shooting image of the first camera acquisition is obtained;
Based on first scene detection results, image procossing is carried out to the shooting image, generates photo.
It should be noted that the step is similar with the step 103 in above method embodiment, difference is, step 103 is Based on first scene detection results, image procossing is carried out to the preview image of first camera acquisition, this step is Based on first scene detection results, image procossing is carried out to the shooting image of the first camera acquisition, generates photo.Cause This, specifically refers to the description in step 102, and to avoid repeating, details are not described herein.
Certainly, in other embodiments, the first camera, can be according to the first scene detection knot before acquisition shoots image Fruit is adjusted the relevant parameter of the first camera, to capture the number of image frames for being suitble to first scene detection results, from And realize the image procossing to collected shooting image.Such as: for night scene scene, the shooting image that is acquired under the scene Noise it is more, brightness is lower, multiframe composition algorithm can be carried out promoted shooting image brightness and signal-to-noise ratio, therefore, need The time for exposure of the first camera is adjusted, to capture the shooting image of the long exposure of multiframe;For backlight scene, under the scene The shooting image light and shade contrast of acquisition is strong, can carry out high dynamic illumination rendering image (High-Dynamic Range, abbreviation HDR) algorithm obtains high dynamic range images, i.e., bright place is unlikely to overexposure, and dark place can see details clearly, therefore, can be with The time for exposure of the first camera is adjusted flexibly, to capture the shooting image of at least 3 frame different exposure times;For sports ground Scape, the shooting image acquired under the scene are easy fuzzy, can carry out ant-shaking algorithm to reduce the fuzziness of shooting image, because This, the time for exposure of adjustable first camera, to capture the shooting image of multiframe short exposure.So as to further increase The quality of target picture.
It should be noted that the state of second camera can remain unchanged in preview and during take pictures.In addition, The preview image and shooting image progress image procossing that mobile terminal acquires the first camera according to the first scene detection results Means should be consistent as far as possible, thereby may be ensured that display screen display preview image and photo it is almost the same, promoted use Family experience.
It should be noted that the optional step may be equally applied in above-described embodiment.
It is one of the structure chart of mobile terminal provided in an embodiment of the present invention referring to Fig. 3, Fig. 3, as shown in figure 3, mobile whole End 300 includes: the first control module 301, the second control module 302 and processing module 303.
Wherein, the first control module 301 acquires preview image for controlling the first camera;
Second control module 302 carries out photographed scene detection on backstage for controlling second camera, obtains the first scene Testing result;
Processing module 303, for being based on first scene detection results, to the preview graph of first camera acquisition As carrying out image procossing.
Optionally, as shown in figure 4, the second control module 302, comprising:
Control submodule 3021 acquires preview image according to preset preview size for controlling second camera;
Detection sub-module 3022, the preview image for acquiring to the second camera carry out photographed scene detection, obtain To the first scene detection results.
Optionally, as shown in figure 5, mobile terminal 300 further include:
Detection module 304 obtains the inspection of the first scene for carrying out photographed scene detection on backstage in control second camera It surveys before result, photographed scene detection is carried out to the preview image of first camera acquisition, obtains the second scene detection knot Fruit;
Judgment module 305, for judging whether second scene detection results are preset scene type;
Second control module 302 is specifically used for the control when second scene detection results are preset scene type The step of second camera carries out photographed scene detection on backstage, obtains the first scene detection results.
Optionally, as shown in fig. 6, processing module 303, comprising:
Submodule 3031 is determined, for determining the associated Image Processing parameter of the first scene detection results;
Submodule 3032 is handled, is used for according to described image processing parameter, to the preview graph of first camera acquisition As carrying out image procossing.
Optionally, as shown in fig. 7, mobile terminal 300 further include:
Module 306 is obtained, for being based on first scene detection results described, first preview image is carried out After image procossing, if receiving photographing instruction, the frame shooting image of the first camera acquisition is obtained;
Generation module 307 carries out image procossing to the shooting image for being based on first scene detection results, Generate photo.
Mobile terminal 300 can be realized each process in the embodiment of the method for Fig. 1 to Fig. 2, and reaches identical and have Beneficial effect, to avoid repeating, which is not described herein again.
It is the six of the structure chart of mobile terminal provided in an embodiment of the present invention referring to Fig. 8, Fig. 8, as shown in figure 8, mobile whole End 800 includes: at least one processor 801, memory 802, at least one network interface 804 and user interface 803.It is mobile whole Various components in end 800 are coupled by bus system 805.It is understood that bus system 805 is for realizing these components Between connection communication.Bus system 805 further includes power bus, control bus and state letter in addition to including data/address bus Number bus.But for the sake of clear explanation, various buses are all designated as bus system 805 in fig. 8.Mobile terminal 800 is also Including the first camera 806 and second camera 807, wherein the first camera 806 and second camera 807 are adopted with image Collect function.In addition, the first camera 806 and second camera 807 pass through bus system 805 and each group of mobile terminal 800 Part connection.
Wherein, user interface 803 may include display, keyboard or pointing device (for example, mouse, trace ball (track ball), touch-sensitive plate or touch screen etc..
It is appreciated that the memory 802 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- Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable Device (Erasable P ROM, EPROM), electrically erasable programmable read-only memory (Electrically EP ROM, EEPROM) Or flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), be used as outside Cache.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory (Synchronous D RAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate SD RAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SD RAM, ESDRAM), synchronous connect Connect dynamic random access memory (Synch link D RAM, SLDRAM) and direct rambus random access memory (Direct Rambus RAM, DRRAM).The memory 802 of system and method described herein is intended to include but is not limited to these With the memory of any other suitable type.
In some embodiments, memory 802 stores following element, executable modules or data structures, or Their subset of person or their superset: operating system 8021 and application program 8022.
Wherein, operating system 8021 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 8022 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 8022.
In embodiments of the present invention, in embodiments of the present invention, mobile terminal 800 further include: be stored on memory 802 And the computer program that can be run on processor 801 specifically can be the computer program in application program 8022, meter Calculation machine program realizes following steps when being executed by processor 801: control the first camera acquisition preview image;The second camera shooting of control Head carries out photographed scene detection on backstage, obtains the first scene detection results;Based on first scene detection results, to described The preview image of first camera acquisition carries out image procossing.
The method that the embodiments of the present invention disclose can be applied in processor 801, or be realized by processor 801. Processor 801 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 801 or the instruction of software form.Above-mentioned processing Device 801 can be general processor, digital signal processor (Digital Signal Processor, DSP), dedicated integrated electricity Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components.It may be implemented or execute 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 is also possible to any conventional processor etc..In conjunction with institute of the embodiment of the present invention The step of disclosed method, can be embodied directly in hardware decoding processor and execute completion, or with the hardware in decoding processor And software module combination executes completion.Software module can be located at random access memory, and flash memory, read-only memory may be programmed read-only In the storage medium of this fields such as memory or electrically erasable programmable memory, register maturation.The storage medium is located at The step of memory 802, processor 801 reads the information in memory 802, completes the above method in conjunction with its hardware.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its Combination is to realize.For hardware realization, processing unit be may be implemented in one or more 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 executing herein described function or combinations thereof.
For software implementations, it can be realized herein by executing the module (such as process, function etc.) of function described herein The technology.Software code is storable in memory and is executed by processor.Memory can in the processor or It is realized outside processor.
Optionally, the processor 801 is also used to: control second camera acquires preview graph according to preset preview size Picture;Photographed scene detection is carried out to the preview image of second camera acquisition, obtains the first scene detection results.
Optionally, the processor 801 is also used to: carrying out photographed scene to the preview image of first camera acquisition Detection, obtains the second scene detection results;Judge whether second scene detection results are preset scene type;If described Second scene detection results are preset scene type, then control second camera on backstage and carry out photographed scene detection, obtain First scene detection results.
Optionally, the processor 801 is also used to: determining the associated image procossing ginseng of first scene detection results Number;According to described image processing parameter, image procossing is carried out to the preview image of first camera acquisition.
Optionally, the processor 801 is also used to: if receiving photographing instruction, obtaining the one of the first camera acquisition Frame shoots image;Based on first scene detection results, image procossing is carried out to the shooting image, generates photo.
It should be noted that above-mentioned mobile terminal 800 can be embodiment of the method in the embodiment of the present invention in the present embodiment In any embodiment mobile terminal, i.e., any embodiment of mobile terminal is all in embodiment of the method in the embodiment of the present invention It can be realized by the above-mentioned mobile terminal 800 in the present embodiment, and reach identical beneficial effect, to avoid repeating, this Place repeats no more.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program, can realize each process of above-mentioned image pickup method embodiment when computer program is executed by processor, and can reach Identical technical effect, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium is deposited Ru read-only Reservoir (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), Magnetic or disk etc..
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present 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.Some or all of unit therein can be selected to realize the embodiment of the present invention according to the actual needs Purpose.
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 image pickup method, applied to the mobile terminal for being provided with the first camera and second camera, which is characterized in that packet It includes:
Control the first camera acquisition preview image;
It controls second camera and carries out photographed scene detection on backstage, obtain the first scene detection results;
Based on first scene detection results, image procossing is carried out to the preview image of first camera acquisition;
Wherein, the control second camera is the step of backstage carries out photographed scene detection, obtains the first scene detection results Before, further includes:
Photographed scene detection is carried out to the preview image of first camera acquisition, obtains the second scene detection results;
Judge whether second scene detection results are preset scene type;
The step of control second camera carries out photographed scene detection on backstage, obtains the first scene detection results, comprising:
If second scene detection results are preset scene type, second camera is controlled on backstage and carries out photographed scene Detection, obtains the first scene detection results.
2. the method according to claim 1, wherein the control second camera carries out photographed scene on backstage The step of detecting, obtaining the first scene detection results, comprising:
It controls second camera and preview image is acquired according to preset preview size;
Photographed scene detection is carried out to the preview image of second camera acquisition, obtains the first scene detection results.
3. the method according to claim 1, wherein described be based on first scene detection results, to described The step of preview image of first camera acquisition carries out image procossing, comprising:
Determine the associated Image Processing parameter of the first scene detection results;
According to described image processing parameter, image procossing is carried out to the preview image of first camera acquisition.
4. according to the method in any one of claims 1 to 3, which is characterized in that examined described based on first scene It surveys as a result, after the step of carrying out image procossing to the preview image of first camera acquisition, further includes:
If receiving photographing instruction, the frame shooting image of the first camera acquisition is obtained;
Based on first scene detection results, image procossing is carried out to the shooting image, generates photo.
5. a kind of mobile terminal, the mobile terminal is provided with the first camera and second camera characterized by comprising
First control module acquires preview image for controlling the first camera;
Second control module carries out photographed scene detection on backstage for controlling second camera, obtains the first scene detection knot Fruit;
Processing module carries out the preview image of first camera acquisition for being based on first scene detection results Image procossing;
Wherein, further includes:
Detection module obtains the first scene detection results for carrying out photographed scene detection on backstage in control second camera Before, photographed scene detection is carried out to the preview image of first camera acquisition, obtains the second scene detection results;
Judgment module, for judging whether second scene detection results are preset scene type;
Second control module is specifically used for the control the when second scene detection results are preset scene type The step of two cameras carry out photographed scene detection on backstage, obtain the first scene detection results.
6. mobile terminal according to claim 5, which is characterized in that second control module, comprising:
Control submodule acquires preview image according to preset preview size for controlling second camera;
Detection sub-module, the preview image for acquiring to the second camera carry out photographed scene detection, obtain first Scape testing result.
7. mobile terminal according to claim 5, which is characterized in that the processing module, comprising:
Submodule is determined, for determining the associated Image Processing parameter of the first scene detection results;
Submodule is handled, for carrying out figure to the preview image of first camera acquisition according to described image processing parameter As processing.
8. mobile terminal according to any one of claims 5 to 7, which is characterized in that further include:
Module is obtained, for being based on first scene detection results described, to the preview graph of first camera acquisition After carrying out image procossing, if receiving photographing instruction, the frame shooting image of the first camera acquisition is obtained;
Generation module carries out image procossing to the shooting image, generates and shine for being based on first scene detection results Piece.
9. a kind of mobile terminal, which is characterized in that including processor, memory and be stored on the memory and can be described The computer program run on processor is realized when the computer program is executed by the processor as in Claims 1-4 The step of described in any item image pickup methods.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program, the computer program realize the step of image pickup method according to any one of claims 1 to 4 when being executed by processor Suddenly.
CN201710803154.8A 2017-09-08 2017-09-08 A kind of image pickup method and mobile terminal Active CN107592453B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710803154.8A CN107592453B (en) 2017-09-08 2017-09-08 A kind of image pickup method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710803154.8A CN107592453B (en) 2017-09-08 2017-09-08 A kind of image pickup method and mobile terminal

Publications (2)

Publication Number Publication Date
CN107592453A CN107592453A (en) 2018-01-16
CN107592453B true CN107592453B (en) 2019-11-05

Family

ID=61051619

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710803154.8A Active CN107592453B (en) 2017-09-08 2017-09-08 A kind of image pickup method and mobile terminal

Country Status (1)

Country Link
CN (1) CN107592453B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108322646B (en) * 2018-01-31 2020-04-10 Oppo广东移动通信有限公司 Image processing method, image processing device, storage medium and electronic equipment
CN111418201B (en) * 2018-03-27 2021-10-15 华为技术有限公司 Shooting method and equipment
CN108881636B (en) * 2018-06-30 2021-05-04 成都西纬科技有限公司 Backlight mode automatic switching method and device, electronic equipment and computer readable storage medium
CN109525765A (en) * 2018-12-21 2019-03-26 浙江晶鲸科技有限公司 High-speed image acquisition system and image-pickup method with FLC Light Valve
CN111050078A (en) * 2019-12-26 2020-04-21 上海传英信息技术有限公司 Photographing method, mobile terminal and computer storage medium
CN111491101B (en) * 2020-04-20 2022-08-02 Oppo广东移动通信有限公司 Image processor, image processing method, photographing device, and electronic apparatus
CN111866374A (en) * 2020-06-22 2020-10-30 上海摩象网络科技有限公司 Image shooting method and device, pan-tilt camera and storage medium
CN113873178B (en) * 2020-06-30 2024-03-22 Oppo广东移动通信有限公司 Multimedia processing chip, electronic device and image processing method
CN111866383A (en) * 2020-07-13 2020-10-30 Oppo广东移动通信有限公司 Image processing method, terminal and storage medium
CN112489004B (en) * 2020-11-25 2024-04-09 成都菲斯洛克电子技术有限公司 Intelligent image acquisition method, device, storage medium and terminal
CN112511750B (en) * 2020-11-30 2022-11-29 维沃移动通信有限公司 Video shooting method, device, equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105049706A (en) * 2015-06-26 2015-11-11 深圳市金立通信设备有限公司 Image processing method and terminal
CN105611139A (en) * 2015-07-15 2016-05-25 宇龙计算机通信科技(深圳)有限公司 Method, device and terminal for image processing
CN106060406A (en) * 2016-07-27 2016-10-26 维沃移动通信有限公司 Photographing method and mobile terminal
CN106101547A (en) * 2016-07-06 2016-11-09 北京奇虎科技有限公司 The processing method of a kind of view data, device and mobile terminal
CN106506963A (en) * 2016-11-30 2017-03-15 努比亚技术有限公司 A kind of photographic method and terminal based on dual camera

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101183781B1 (en) * 2009-12-22 2012-09-17 삼성전자주식회사 Method and apparatus for object detecting/tracking using real time motion estimation of camera
US9716876B2 (en) * 2015-04-01 2017-07-25 Sony Corporation Power efficient multiple camera system
CN106454104A (en) * 2016-10-28 2017-02-22 维沃移动通信有限公司 Photographing method and mobile terminal
CN106331510B (en) * 2016-10-31 2019-10-15 维沃移动通信有限公司 A kind of backlight photographic method and mobile terminal
CN106331519A (en) * 2016-10-31 2017-01-11 维沃移动通信有限公司 Method for adjusting light-compensating lamp and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105049706A (en) * 2015-06-26 2015-11-11 深圳市金立通信设备有限公司 Image processing method and terminal
CN105611139A (en) * 2015-07-15 2016-05-25 宇龙计算机通信科技(深圳)有限公司 Method, device and terminal for image processing
CN106101547A (en) * 2016-07-06 2016-11-09 北京奇虎科技有限公司 The processing method of a kind of view data, device and mobile terminal
CN106060406A (en) * 2016-07-27 2016-10-26 维沃移动通信有限公司 Photographing method and mobile terminal
CN106506963A (en) * 2016-11-30 2017-03-15 努比亚技术有限公司 A kind of photographic method and terminal based on dual camera

Also Published As

Publication number Publication date
CN107592453A (en) 2018-01-16

Similar Documents

Publication Publication Date Title
CN107592453B (en) A kind of image pickup method and mobile terminal
CN109005366B (en) Night scene shooting processing method and device for camera module, electronic equipment and storage medium
CN106331510B (en) A kind of backlight photographic method and mobile terminal
CN108933899B (en) Panorama shooting method, device, terminal and computer readable storage medium
CN108419023B (en) Method for generating high dynamic range image and related equipment
CN107734225B (en) A kind of image pickup method and device
CN109218628B (en) Image processing method, image processing device, electronic equipment and storage medium
CN107205120B (en) A kind of processing method and mobile terminal of image
CN105227858B (en) A kind of image processing method and mobile terminal
CN105898143B (en) A kind of grasp shoot method and mobile terminal of moving object
CN107231530B (en) A kind of photographic method and mobile terminal
CN105339840B (en) The photographic method and bimirror head apparatus of bimirror head apparatus
CN109040597B (en) Image processing method based on multiple cameras, mobile terminal and storage medium
WO2020038072A1 (en) Exposure control method and device, and electronic device
CN108337445B (en) Photographing method, related device and computer storage medium
CN101213828B (en) Method and apparatus for incorporating iris color in red-eye correction
CN108012080A (en) Image processing method, device, electronic equipment and computer-readable recording medium
CN110445988A (en) Image processing method, device, storage medium and electronic equipment
CN106060422B (en) A kind of image exposure method and mobile terminal
CN107395998A (en) A kind of image capturing method and mobile terminal
CN110213494A (en) Image pickup method and device, electronic equipment, computer readable storage medium
CN107465874B (en) A kind of dark current processing method and mobile terminal
CN109040596B (en) Method for adjusting camera, mobile terminal and storage medium
CN109361853B (en) Image processing method, image processing device, electronic equipment and storage medium
CN112312035B (en) Exposure parameter adjusting method, exposure parameter adjusting device and electronic equipment

Legal Events

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