CN105991930B - Zoom processing method, device and the mobile terminal of dual camera - Google Patents

Zoom processing method, device and the mobile terminal of dual camera Download PDF

Info

Publication number
CN105991930B
CN105991930B CN201610573049.5A CN201610573049A CN105991930B CN 105991930 B CN105991930 B CN 105991930B CN 201610573049 A CN201610573049 A CN 201610573049A CN 105991930 B CN105991930 B CN 105991930B
Authority
CN
China
Prior art keywords
preview image
camera
zoom
pixel
synthesis
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
CN201610573049.5A
Other languages
Chinese (zh)
Other versions
CN105991930A (en
Inventor
韦怡
张弓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610573049.5A priority Critical patent/CN105991930B/en
Publication of CN105991930A publication Critical patent/CN105991930A/en
Application granted granted Critical
Publication of CN105991930B publication Critical patent/CN105991930B/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces

Abstract

The present invention proposes zoom processing method, device and the mobile terminal of a kind of dual camera, wherein the zoom processing method of the dual camera, comprising: detects and starts main camera when user opens camera, and detects whether user triggers zoom amplifying operation;If the user triggers zoom and is enlarged, start secondary camera, and the second preview image that the first preview image obtained according to the main camera and the secondary camera obtain generates synthesis preview image;When detecting that user stops zoom amplifying operation, the accounting numerical value of the first preview image and second preview image described in corresponding synthesis preview image is determined;According to the working condition of first preview image and the accounting Numerical Control dual camera of second preview image.The zoom processing method of dual camera of the invention can reduce power consumption, the available work duration and working efficiency of effective lifting means while guaranteeing user's focusing experience and taking pictures effect.

Description

Zoom processing method, device and the mobile terminal of dual camera
Technical field
The present invention relates to shooting processing technology field, in particular to the zoom processing method of a kind of dual camera, device and Mobile terminal.
Background technique
Currently, can realize zoom function by dual camera on more and more mobile terminals.Wherein, dual camera is set Meter is mainly made of the camera of the camera of wide-angle and a focal length.It realizes the principle of zoom are as follows: opens camera shooting After head, while entering wide-angle camera (being also referred to as main camera) and focal length camera (also referred to as secondary camera), two are taken the photograph For user's preview after being synthesized as the picture of head.When user will use zoom function, frame can be amplified by touch screen and be put Big operation, at this point, the image accounting of main camera can be reduced slowly, the image accounting of secondary camera can slowly increase, and be closed At display, to reach the function of zoom.However, realizing the mobile terminal of zoom function above by dual camera, two are needed A camera works at the same time, and causes the electric energy of mobile terminal and resource consumption larger, reduces working time and the work of mobile terminal Make efficiency.
Summary of the invention
The present invention is directed to solve above-mentioned technical problem at least to a certain extent.
For this purpose, the first purpose of this invention is to propose a kind of zoom processing method of dual camera, can guarantee User focus experience and take pictures effect while, reduce power consumption, the available work duration and working efficiency of effective lifting means.
Second object of the present invention is to propose a kind of zoom processing unit of dual camera.
Third object of the present invention is to propose a kind of mobile terminal.
Fourth object of the present invention is to propose another mobile terminal.
In order to achieve the above object, embodiment proposes a kind of zoom processing side of dual camera according to a first aspect of the present invention Method, comprising the following steps:
It detects and starts main camera when user opens camera, and detect whether user triggers zoom amplifying operation;
If the user triggers zoom and is enlarged, start secondary camera, and obtained according to the main camera The second preview image that first preview image and the secondary camera obtain generates synthesis preview image;
When detecting that user stops the zoom and is enlarged, determine described in corresponding synthesis preview image first in advance Look at the accounting numerical value of image and second preview image;
According to the work shape of first preview image and the accounting Numerical Control dual camera of second preview image State.
The zoom processing method of dual camera according to an embodiment of the present invention, may also include following additional technical feature:
In one embodiment of the invention, in one embodiment of the invention, whether the detection user triggers change Coke is enlarged, comprising:
The preview interface whether detection user obtains the main camera amplifies touch control operation;Or,
Whether detection user triggers preset amplification Zoom control key.
In one embodiment of the invention, according to the first preview image of the main camera acquisition and the pair The second preview image that camera obtains generates synthesis preview image, comprising:
It is enlarged according to the zoom and determines corresponding zoom magnifications;
The first pixel and described second in first preview image is determined in advance according to the zoom magnifications The second pixel look in image;
First pixel and second pixel are subjected to synthesis processing and generate synthesis preview image.
In one embodiment of the invention, the first preview image described in the corresponding synthesis preview image of the determination and The accounting numerical value of second preview image, comprising:
Calculate first pixel and second pixel and, obtain total pixel;
The ratio of first pixel and second pixel and total pixel is calculated separately, it is pre- to obtain synthesis Look at the accounting numerical value of the first preview image described in image and second preview image.
In one embodiment of the invention, the accounting for according to first preview image and second preview image Than the working condition of Numerical Control dual camera, comprising:
If detection knows that the accounting numerical value of first preview image is greater than preset first threshold, controls the pair and take the photograph As standby, the control main camera work;Alternatively,
If detection knows that the accounting numerical value of second preview image is greater than preset second threshold, controls the master and take the photograph As standby, the control secondary camera work;Alternatively,
If detection knows that the accounting numerical value of first preview image is less than preset first threshold, and second preview The accounting numerical value of image is less than preset second threshold, then the main camera and the secondary camera is maintained to work at the same time.
Second aspect of the present invention embodiment provides one kind, the zoom processing unit of dual camera, comprising:
Detection module starts main camera when for detecting that user opens camera, and detects whether user triggers zoom It is enlarged;
Synthesis module, for starting secondary camera, and take the photograph according to the master when the user triggers zoom and is enlarged The second preview image that the first preview image and the secondary camera obtained as head obtains generates synthesis preview image
Determining module, for determining corresponding synthesis preview graph when detecting that user stops zoom amplifying operation The accounting numerical value of the first preview image and second preview image as described in;
Control module, for being taken the photograph according to the accounting Numerical Control pair of first preview image and second preview image As the working condition of head.
The zoom processing unit of dual camera according to an embodiment of the present invention, may also include following additional technical feature:
In one embodiment of the invention, the detection module is used for:
The preview interface whether detection user obtains the main camera amplifies touch control operation;Or,
Whether detection user triggers preset amplification Zoom control key.
In one embodiment of the invention, the synthesis module is used for:
It is enlarged according to the zoom and determines corresponding zoom magnifications;
The first pixel and described second in first preview image is determined in advance according to the zoom magnifications The second pixel look in image;
First pixel and second pixel are subjected to synthesis processing and generate synthesis preview image.
In one embodiment of the invention, the determining module is used for:
Calculate first pixel and second pixel and, obtain total pixel;
The ratio of first pixel and second pixel and total pixel is calculated separately, it is pre- to obtain synthesis Look at the accounting numerical value of the first preview image described in image and second preview image.
In one embodiment of the invention, the control module is used for:
If detection knows that the accounting numerical value of first preview image is greater than preset first threshold, controls the pair and take the photograph As standby, the control main camera work;Alternatively,
If detection knows that the accounting numerical value of second preview image is greater than preset second threshold, controls the master and take the photograph As standby, the control secondary camera work;Alternatively,
If detection knows that the accounting numerical value of first preview image is less than preset first threshold, and second preview The accounting numerical value of image is less than preset second threshold, then the main camera and the secondary camera is maintained to work at the same time.
Third aspect present invention embodiment provides a kind of mobile terminal, including second aspect of the present invention any embodiment The zoom processing unit of dual camera.
Fourth aspect present invention embodiment provides a kind of mobile terminal
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
It detects and starts main camera when user opens camera, and detect whether user triggers zoom amplifying operation;
If the user triggers zoom and is enlarged, start secondary camera, and obtained according to the main camera The second preview image that first preview image and the secondary camera obtain generates synthesis preview image;
When detecting that user stops the zoom and is enlarged, determine described in corresponding synthesis preview image first in advance Look at the accounting numerical value of image and second preview image;
According to the work shape of first preview image and the accounting Numerical Control dual camera of second preview image State.
Zoom processing method, device and the mobile terminal of the dual camera of the embodiment of the present invention, by detecting user Start main camera when opening camera, and starts secondary camera when zoom is enlarged detecting that user triggers, and by two The image that camera obtains synthesizes preview image, when user stops zoom amplifying operation, determines corresponding synthesis preview graph The accounting numerical value of the first preview image and the second preview image as in, and the working condition of dual camera is controlled, it can be according to reality The work for shooting demand control pair camera works without two camera whole process, effectively reduces the function in shooting process Consumption and resource occupation.In addition, can be according to the accounting numerical value for becoming the first preview image and the second preview image in synthesis preview image The working condition of dual camera is controlled, can further be dropped according to being work that zoom demand selectively controls dual camera Low-power consumption.So as to effectively promote the available work of capture apparatus while guaranteeing user's focusing experience and taking pictures effect Duration and working efficiency.
Additional aspect and advantage of the invention will be set forth in part in the description, and will partially become from the following description Obviously, or practice through the invention is recognized.
Detailed description of the invention
Above-mentioned and/or additional aspect of the invention and advantage will become from the description of the embodiment in conjunction with the following figures Obviously and it is readily appreciated that, in which:
Fig. 1 is the flow chart according to the zoom processing method of the dual camera of one embodiment of the invention;
Fig. 2 is the structural schematic diagram according to the zoom processing unit of the dual camera of one embodiment of the invention;
Fig. 3 is a kind of block diagram of mobile terminal shown according to an exemplary embodiment.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, and for explaining only the invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings zoom processing method, device and the movement of dual camera according to an embodiment of the present invention are described eventually End.
The capture apparatus of the embodiment of the present invention is dual camera equipment, and dual camera includes main camera and secondary camera. Wherein, main camera can be wide-angle camera, and secondary camera can be focal length camera.It should be noted that the present invention is real The capture apparatus for applying example may include but be not limited to the movement such as mobile phone, tablet computer, intelligent wearable equipment, personal digital assistant eventually End.
Fig. 1 is the flow chart according to the zoom processing method of the dual camera of one embodiment of the invention.
As shown in Figure 1, the zoom processing method of dual camera according to an embodiment of the present invention, comprising:
S101 is detected and is started main camera when user opens camera, and detects whether user triggers zoom amplifying operation.
In one embodiment of the invention, whether detection user triggers zoom amplifying operation, it may include:
The preview interface whether detection user obtains the main camera amplifies touch control operation;Or,
Whether detection user triggers preset amplification Zoom control key.
For example, when detecting that user in two finger reversible sliding actions at image preview interface, or detects When user is to the button operation of volume amplifying key-press, it may be determined that detection user triggers zoom and is enlarged.
S102 starts secondary camera, and obtain according to the main camera if the user triggers zoom and is enlarged The second preview image that the first preview image and the secondary camera taken obtains generates synthesis preview image.
In an embodiment of the present invention, when detecting that user triggers zoom amplifying operation, secondary camera can be started.In pair After camera starting, main camera and secondary camera can respectively to photographic subjects carry out Image Acquisition obtain the first preview image and Second preview image.It in turn, can be by the first preview image that main camera obtains and the second preview image that secondary camera obtains Synthesis, to generate synthesis preview image.
In one embodiment of the invention, according to the first preview image of the main camera acquisition and the pair The second preview image that camera obtains generates synthesis preview image, it may include: determining correspond to is enlarged according to the zoom Zoom magnifications;The first pixel in first preview image, Yi Jisuo are determined according to the zoom magnifications State the second pixel in the second preview image;First pixel and second pixel are carried out synthesis processing to generate Synthesize preview image.
Specifically, it can be determined according to zoom magnifications during generating synthesis preview image, required first is pre- Ratio shared by the second pixel look in the first pixel and the second preview image in image.Zoom magnifications are bigger, Then during generating synthesis preview image, ratio shared by the second pixel in the second preview image is higher, and zoom is put Big multiple is smaller, and ratio shared by the second pixel during generating synthesis preview image in the second preview image is got over It is low.
In one embodiment of the invention, zoom magnifications and synthesis preview image can be determined according to preset algorithm Needed for the first pixel quantity and the second pixel quantity corresponding relationship.
For example, if zoom magnifications are 1, it can mainly be generated and be closed using the pixel in the first preview image At preview image;If amplification factor is 8 times, synthesis preview graph mainly can be generated using the pixel in the second preview image Picture;If amplification factor is 3, the same pixel of quantity can be chosen from the first preview image and the second preview image and is carried out Synthesis, to generate synthesis preview image.
In an embodiment of the present invention, only pass through main camera when user is not detected and triggers zoom amplifying operation, When detecting that user triggers zoom amplifying operation, just start secondary camera, carries out image synthesis and zoom work.If do not examined It measures user and triggers zoom amplifying operation, be then not turned on secondary camera, whole process is used only main camera and obtains preview image.From And secondary camera work is only opened when there is zoom to need, rather than major and minor camera works at the same time always, can guarantee User focus experience and take pictures effect while, greatly save energy consumption.
S103 is determined described in corresponding synthesis preview image when detecting that user stops zoom amplifying operation The accounting numerical value of first preview image and second preview image.
In an embodiment of the present invention, warp can be enlarged when user stops zoom amplification behaviour, or stopping zoom After crossing preset time, the accounting of the first preview image and second preview image described in corresponding synthesis preview image is determined Numerical value.
Wherein, the accounting numerical value of the first preview image refers in the first preview image used in synthesis preview image The ratio of pixel sum in the quantity and synthesis preview image of first pixel;The accounting numerical value of second preview image refers to Quantity and the pixel in synthesis preview image for synthesizing the second pixel in the second preview image used in preview image are total Several ratio.
In one embodiment of the invention, the first preview image described in the corresponding synthesis preview image of the determination and The accounting numerical value of second preview image, it may include: calculate first pixel and second pixel and, acquisition Total pixel;The ratio of first pixel and second pixel and total pixel is calculated separately, synthesis is obtained The accounting numerical value of first preview image described in preview image and second preview image.
S104, according to the work of first preview image and the accounting Numerical Control dual camera of second preview image Make state.
In one embodiment of the invention, the accounting for according to first preview image and second preview image Than the working condition of Numerical Control dual camera, it may include:
If detection knows that the accounting numerical value of first preview image is greater than preset first threshold, controls the pair and take the photograph As standby, the control main camera work;Alternatively,
If detection knows that the accounting numerical value of second preview image is greater than preset second threshold, controls the master and take the photograph As standby, the control secondary camera work;Alternatively,
If detection knows that the accounting numerical value of first preview image is less than preset first threshold, and second preview The accounting numerical value of image is less than preset second threshold, then the main camera and the secondary camera is maintained to work at the same time.
Wherein, first threshold and second threshold can be calculated previously according to experimental data.For example, first threshold can It is 80%, second threshold can be 80%.Certainly, first threshold can also be unequal with second threshold.
For example, if the accounting numerical value of the first preview image is greater than 80%, i.e., the accounting numerical value of secondary camera is less than 20%, then it can control secondary camera standby, i.e. only main camera work;If the accounting numerical value of the second preview image is greater than 80%, i.e. the accounting numerical value of the first preview image then can control main camera standby less than 20%, i.e. only secondary camera work. If the accounting numerical value of the first preview image is less than preset first threshold, and the accounting numerical value of the second preview image is less than default Second threshold, then main camera and secondary camera can be maintained to work at the same time.
Thus can be according to the needs of composograph, when a camera can satisfy the need of composograph in dual camera It when asking, then can control another camera standby, when needing two cameras to obtain image simultaneously and synthesized, just control Two cameras work at the same time, and can effectively save power consumption, enhance the focusing experience of user.
The zoom processing method of the dual camera of the embodiment of the present invention passes through the starting master when detecting that user opens camera Camera, and start secondary camera when zoom is enlarged detecting that user triggers, and the image that two cameras are obtained Preview image is synthesized, when user stops zoom amplifying operation, determines the first preview image in corresponding synthesis preview image With the accounting numerical value of the second preview image, and the working condition of dual camera is controlled, can be taken the photograph according to actual photographed demand control pair As the work of head, works without two camera whole process, effectively reduce the power consumption and resource occupation in shooting process.This It outside, can be according to the work for becoming the accounting Numerical Control dual camera of the first preview image and the second preview image in synthesis preview image Make state, power consumption can be further decreased according to being work that zoom demand selectively controls dual camera.So as to Guarantee user focus experience and take pictures effect while, effectively promoted capture apparatus available work duration and working efficiency.
In order to realize above-described embodiment, the present invention also proposes a kind of zoom processing unit of dual camera.
Fig. 2 is the structural schematic diagram according to the zoom processing unit of the dual camera of one embodiment of the invention.
As shown in Fig. 2, the zoom processing unit of dual camera according to an embodiment of the present invention, comprising: detection module 10 closes At module 20, determining module 30 and control module 40.
Specifically, detection module 10, which is used to detect, starts main camera when user opens camera, and whether detects user Zoom is triggered to be enlarged.
In one embodiment of the invention, detection module 10 can be used for: whether detection user obtains the main camera The preview interface taken amplifies touch control operation;Or, whether detection user triggers preset amplification Zoom control key.
For example, when detecting that user in two finger reversible sliding actions at image preview interface, or detects When user is to the button operation of volume amplifying key-press, detection module 10 can determine that detection user triggers zoom and is enlarged.
Synthesis module 20 is used to start secondary camera, and according to the master when the user triggers zoom and is enlarged The second preview image that the first preview image and the secondary camera that camera obtains obtain generates synthesis preview image.
In an embodiment of the present invention, synthesis module 20 can start pair when detecting that user triggers zoom amplifying operation Camera.After the starting of secondary camera, main camera and secondary camera can carry out Image Acquisition to photographic subjects respectively and obtain the One preview image and the second preview image.In turn, synthesis module 20 can take the photograph the first preview image and pair that main camera obtains As the second preview image synthesis that head obtains, to generate synthesis preview image.
In one embodiment of the invention, synthesis module 20 can be used for: being enlarged according to the zoom and determines correspondence Zoom magnifications;The first pixel in first preview image, Yi Jisuo are determined according to the zoom magnifications State the second pixel in the second preview image;First pixel and second pixel are carried out synthesis processing to generate Synthesize preview image.
Specifically, synthesis module 20 can determine institute during generating synthesis preview image according to zoom magnifications Ratio shared by the second pixel in the first pixel and the second preview image in the first preview image needed.Zoom amplification Multiple is bigger, then during generating synthesis preview image, ratio shared by the second pixel in the second preview image is got over Height, zoom magnifications are smaller, shared by the second pixel during generating synthesis preview image in the second preview image Ratio it is lower.
In one embodiment of the invention, zoom magnifications and synthesis preview image can be determined according to preset algorithm Needed for the first pixel quantity and the second pixel quantity corresponding relationship.
For example, if zoom magnifications are 1, the pixel that can be used only in the first preview image generates synthesis Preview image;If amplification factor is 8 times, the pixel that can be used only in the second preview image generates synthesis preview image; If amplification factor is 3, the same pixel of quantity can be chosen from the first preview image and the second preview image and be closed At to generate synthesis preview image.
In an embodiment of the present invention, only pass through main camera when user is not detected and triggers zoom amplifying operation, When detecting that user triggers zoom amplifying operation, just start secondary camera, carries out image synthesis and zoom work.If do not examined It measures user and triggers zoom amplifying operation, be then not turned on secondary camera, whole process is used only main camera and obtains preview image.From And secondary camera work is only opened when there is zoom to need, rather than major and minor camera works at the same time always, can guarantee User focus experience and take pictures effect while, greatly save energy consumption.
Determining module 30 is used to determine corresponding synthesis preview graph when detecting that user stops zoom amplifying operation The accounting numerical value of the first preview image and second preview image as described in.
In an embodiment of the present invention, determining module 30 can be when user stops zoom amplification behaviour, or is stopping zoom It is enlarged after preset time, determines the first preview image described in corresponding synthesis preview image and second preview The accounting numerical value of image.
Wherein, the accounting numerical value of the first preview image refers in the first preview image used in synthesis preview image The ratio of pixel sum in the quantity and synthesis preview image of first pixel;The accounting numerical value of second preview image refers to Quantity and the pixel in synthesis preview image for synthesizing the second pixel in the second preview image used in preview image are total Several ratio.
In one embodiment of the invention, determining module 30 can be used for: calculate first pixel and described second The sum of pixel obtains total pixel;Calculate separately first pixel and second pixel and total pixel Ratio, obtain synthesis preview image described in the first preview image and second preview image accounting numerical value.
Control module 40 is used for double according to the accounting Numerical Control of first preview image and second preview image The working condition of camera.
In one embodiment of the invention, control module 40 can be used for:
If detection knows that the accounting numerical value of first preview image is greater than preset first threshold, controls the pair and take the photograph As standby, the control main camera work;Alternatively,
If detection knows that the accounting numerical value of second preview image is greater than preset second threshold, controls the master and take the photograph As standby, the control secondary camera work;Alternatively,
If detection knows that the accounting numerical value of first preview image is less than preset first threshold, and second preview The accounting numerical value of image is less than preset second threshold, then the main camera and the secondary camera is maintained to work at the same time.
Wherein, first threshold and second threshold can be calculated previously according to experimental data.For example, first threshold can It is 80%, second threshold can be 80%.Certainly, first threshold can also be unequal with second threshold.
For example, if the accounting numerical value of the first preview image is greater than 80%, i.e., the accounting numerical value of secondary camera is less than 20%, then it can control secondary camera standby, i.e. only main camera work;If the accounting numerical value of the second preview image is greater than 80%, i.e. the accounting numerical value of the first preview image then can control main camera standby less than 20%, i.e. only secondary camera work. If the accounting numerical value of the first preview image is less than preset first threshold, and the accounting numerical value of the second preview image is less than default Second threshold, then main camera and secondary camera can be maintained to work at the same time.
Thus can be according to the needs of composograph, when a camera can satisfy the need of composograph in dual camera It when asking, then can control another camera standby, when needing two cameras to obtain image simultaneously and synthesized, just control Two cameras work at the same time, and can effectively save power consumption, enhance the focusing experience of user.
The zoom processing unit of the dual camera of the embodiment of the present invention passes through the starting master when detecting that user opens camera Camera, and start secondary camera when zoom is enlarged detecting that user triggers, and the image that two cameras are obtained Preview image is synthesized, when user stops zoom amplifying operation, determines the first preview image in corresponding synthesis preview image With the accounting numerical value of the second preview image, and the working condition of dual camera is controlled, can be taken the photograph according to actual photographed demand control pair As the work of head, works without two camera whole process, effectively reduce the power consumption and resource occupation in shooting process.This It outside, can be according to the work for becoming the accounting Numerical Control dual camera of the first preview image and the second preview image in synthesis preview image Make state, power consumption can be further decreased according to being work that zoom demand selectively controls dual camera.So as to Guarantee user focus experience and take pictures effect while, effectively promoted capture apparatus available work duration and working efficiency.
The present invention also proposes a kind of mobile terminal.
Mobile terminal according to an embodiment of the present invention, the zoom processing of the dual camera including any embodiment of the present invention Device, by starting main camera when detecting that user opens camera, and when detecting that user triggers zoom amplifying operation Start secondary camera, and the image that two cameras obtain is synthesized into preview image, when user stops zoom amplifying operation, It determines the accounting numerical value of the first preview image and the second preview image in corresponding synthesis preview image, and controls dual camera Working condition can work without two camera whole process, effectively drop according to the work of actual photographed demand control pair camera Power consumption and resource occupation in low shooting process.In addition, the first preview image and second in preview image can be synthesized according to becoming The working condition of the accounting Numerical Control dual camera of preview image, can be according to being that zoom demand selectively controls double camera shootings The work of head, further decreases power consumption.So as to effectively be promoted and clapped while guaranteeing user's focusing experience and taking pictures effect Take the photograph the available work duration and working efficiency of equipment.
The present invention also proposes another mobile terminal.
Mobile terminal according to an embodiment of the present invention, comprising: processor;Storage for storage processor executable instruction Device;Wherein, the processor is configured to:
Mobile terminal according to an embodiment of the present invention, by starting main camera when detecting that user opens camera, and Start secondary camera when zoom is enlarged detecting that user triggers, and the image that two cameras obtain is synthesized into preview Image determines the first preview image and the second preview in corresponding synthesis preview image when user stops zoom amplifying operation The accounting numerical value of image, and control the working condition of dual camera, can according to the work of actual photographed demand control pair camera, It works without two camera whole process, effectively reduces the power consumption and resource occupation in shooting process.In addition, can be closed according to becoming At the working condition of the first preview image in preview image and the accounting Numerical Control dual camera of the second preview image, Neng Gougen According to being work that zoom demand selectively controls dual camera, power consumption is further decreased.So as to guarantee user's focusing Experience and take pictures effect while, effectively promoted capture apparatus available work duration and working efficiency.
Fig. 3 is a kind of block diagram of mobile terminal 300 shown according to an exemplary embodiment.For example, device 300 can be Mobile phone, digital broadcasting terminal, messaging device, game console, tablet device, Medical Devices, body-building equipment are personal Digital assistants etc..
Referring to Fig. 3, device 300 may include following one or more components: processing component 302, memory 304, power supply Component 306, multimedia component 308, audio component 310, the interface 312 of input/output (I/O), sensor module 314, and Communication component 316.
The integrated operation of the usual control device 300 of processing component 302, such as with display, telephone call, data communication, phase Machine operation and record operate associated operation.Processing component 302 may include that one or more processors 320 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 302 may include one or more modules, just Interaction between processing component 302 and other assemblies.For example, processing component 302 may include multi-media module, it is more to facilitate Interaction between media component 308 and processing component 302.
Memory 304 is configured as storing various types of data to support the operation in equipment 300.These data are shown Example includes the instruction of any application or method for operating on the device 300, contact data, and telephone book data disappears Breath, picture, video etc..Memory 304 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 306 provides electric power for the various assemblies of device 300.Power supply module 306 may include power management system System, one or more power supplys and other with for device 300 generate, manage, and distribute the associated component of electric power.
Multimedia component 308 includes the screen of one output interface of offer between described device 300 and user.One In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers Body component 308 includes a front camera and/or rear camera.When equipment 300 is in operation mode, such as screening-mode or When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 310 is configured as output and/or input audio signal.For example, audio component 310 includes a Mike Wind (MIC), when device 300 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched It is set to reception external audio signal.The received audio signal can be further stored in memory 304 or via communication set Part 316 is sent.In some embodiments, audio component 310 further includes a loudspeaker, is used for output audio signal.
I/O interface 312 provides interface between processing component 302 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock Determine button.
Sensor module 314 includes one or more sensors, and the state for providing various aspects for device 300 is commented Estimate.For example, sensor module 314 can detecte the state that opens/closes of equipment 300, and the relative positioning of component, for example, it is described Component is the display and keypad of device 300, and sensor module 314 can be with 300 1 components of detection device 300 or device Position change, the existence or non-existence that user contacts with device 300,300 orientation of device or acceleration/deceleration and device 300 Temperature change.Sensor module 314 may include proximity sensor, be configured to detect without any physical contact Presence of nearby objects.Sensor module 314 can also include optical sensor, such as CMOS or ccd image sensor, at As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 316 is configured to facilitate the communication of wired or wireless way between device 300 and other equipment.Device 300 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation In example, communication component 316 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 316 further includes near-field communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 300 can be believed by one or more application specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 304 of instruction, above-metioned instruction can be executed by the processor 320 of device 300 to complete the above method.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention its Its embodiment.This application is intended to cover any variations, uses, or adaptations of the invention, these modifications, purposes or Person's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following Claim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.

Claims (12)

1. a kind of zoom processing method of dual camera, which comprises the following steps:
It detects and starts main camera when user opens camera, and detect whether user triggers zoom amplifying operation;
If the user triggers zoom and is enlarged, start secondary camera, and first obtained according to the main camera The second preview image that preview image and the secondary camera obtain generates synthesis preview image;
When detecting that user stops zoom amplifying operation, the first preview graph described in corresponding synthesis preview image is determined The accounting numerical value of picture and second preview image;
According to the working condition of first preview image and the accounting Numerical Control dual camera of second preview image.
2. the method as described in claim 1, which is characterized in that whether the detection user triggers zoom amplifying operation, comprising:
The preview interface whether detection user obtains the main camera amplifies touch control operation;Or,
Whether detection user triggers preset amplification Zoom control key.
3. the method as described in claim 1, which is characterized in that according to the first preview image that the main camera obtains, with And the second preview image that the secondary camera obtains generates synthesis preview image, comprising:
It is enlarged according to the zoom and determines corresponding zoom magnifications;
The first pixel and second preview graph in first preview image are determined according to the zoom magnifications The second pixel as in;
First pixel and second pixel are subjected to synthesis processing and generate synthesis preview image.
4. method as claimed in claim 3, which is characterized in that first is pre- described in the corresponding synthesis preview image of the determination Look at the accounting numerical value of image and second preview image, comprising:
Calculate first pixel and second pixel and, obtain total pixel;
The ratio of first pixel and second pixel and total pixel is calculated separately, synthesis preview graph is obtained The accounting numerical value of the first preview image and second preview image as described in.
5. the method as described in claim 1-4 is any, which is characterized in that described according to first preview image and described The working condition of the accounting Numerical Control dual camera of two preview images, comprising:
If detection knows that the accounting numerical value of first preview image is greater than preset first threshold, the secondary camera is controlled It is standby, control the main camera work;Alternatively,
If detection knows that the accounting numerical value of second preview image is greater than preset second threshold, the main camera is controlled It is standby, control the secondary camera work;Alternatively,
If detection knows that the accounting numerical value of first preview image is less than preset first threshold, and second preview image Accounting numerical value be less than preset second threshold, then maintain the main camera and the secondary camera to work at the same time.
6. a kind of zoom processing unit of dual camera characterized by comprising
Detection module starts main camera when for detecting that user opens camera, and detects whether user triggers zoom amplification Operation;
Synthesis module, for starting secondary camera, and according to the main camera when the user triggers zoom and is enlarged The second preview image that the first preview image and the secondary camera obtained obtains generates synthesis preview image
Determining module, for determining in corresponding synthesis preview image when detecting that user stops zoom amplifying operation The accounting numerical value of first preview image and second preview image;
Control module, for the accounting Numerical Control dual camera according to first preview image and second preview image Working condition.
7. device as claimed in claim 6, which is characterized in that the detection module is used for:
The preview interface whether detection user obtains the main camera amplifies touch control operation;Or,
Whether detection user triggers preset amplification Zoom control key.
8. device as claimed in claim 6, which is characterized in that the synthesis module is used for:
It is enlarged according to the zoom and determines corresponding zoom magnifications;
The first pixel and second preview graph in first preview image are determined according to the zoom magnifications The second pixel as in;
First pixel and second pixel are subjected to synthesis processing and generate synthesis preview image.
9. device as claimed in claim 8, which is characterized in that the determining module is used for:
Calculate first pixel and second pixel and, obtain total pixel;
The ratio of first pixel and second pixel and total pixel is calculated separately, synthesis preview graph is obtained The accounting numerical value of the first preview image and second preview image as described in.
10. the device as described in claim 6-9 is any, which is characterized in that the control module is used for:
If detection knows that the accounting numerical value of first preview image is greater than preset first threshold, the secondary camera is controlled It is standby, control the main camera work;Alternatively,
If detection knows that the accounting numerical value of second preview image is greater than preset second threshold, the main camera is controlled It is standby, control the secondary camera work;Alternatively,
If detection knows that the accounting numerical value of first preview image is less than preset first threshold, and second preview image Accounting numerical value be less than preset second threshold, then maintain the main camera and the secondary camera to work at the same time.
11. a kind of mobile terminal, which is characterized in that at such as zoom of the described in any item dual cameras of claim 6-10 Manage device.
12. a kind of mobile terminal characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
It detects and starts main camera when user opens camera, and detect whether user triggers zoom amplifying operation;
If the user triggers zoom and is enlarged, start secondary camera, and first obtained according to the main camera The second preview image that preview image and the secondary camera obtain generates synthesis preview image;
When detecting that user stops zoom amplifying operation, the first preview graph described in corresponding synthesis preview image is determined The accounting numerical value of picture and second preview image;
According to the working condition of first preview image and the accounting Numerical Control dual camera of second preview image.
CN201610573049.5A 2016-07-19 2016-07-19 Zoom processing method, device and the mobile terminal of dual camera Active CN105991930B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610573049.5A CN105991930B (en) 2016-07-19 2016-07-19 Zoom processing method, device and the mobile terminal of dual camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610573049.5A CN105991930B (en) 2016-07-19 2016-07-19 Zoom processing method, device and the mobile terminal of dual camera

Publications (2)

Publication Number Publication Date
CN105991930A CN105991930A (en) 2016-10-05
CN105991930B true CN105991930B (en) 2019-04-19

Family

ID=57044685

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610573049.5A Active CN105991930B (en) 2016-07-19 2016-07-19 Zoom processing method, device and the mobile terminal of dual camera

Country Status (1)

Country Link
CN (1) CN105991930B (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106454121B (en) * 2016-11-11 2020-02-07 努比亚技术有限公司 Double-camera shooting method and device
CN106454132A (en) * 2016-11-29 2017-02-22 广东欧珀移动通信有限公司 Control method, control device and electronic device
CN106791376B (en) * 2016-11-29 2019-09-13 Oppo广东移动通信有限公司 Imaging device, control method, control device and electronic device
CN106791377B (en) 2016-11-29 2019-09-27 Oppo广东移动通信有限公司 Control method, control device and electronic device
JP2020516094A (en) * 2016-12-24 2020-05-28 華為技術有限公司Huawei Technologies Co.,Ltd. Camera control method and terminal
CN106713716B (en) * 2017-01-23 2020-03-31 努比亚技术有限公司 Shooting control method and device for double cameras
US10142543B1 (en) * 2017-05-12 2018-11-27 Mediatek Inc. Power reduction in a multi-sensor camera device by on-demand sensors activation
CN107277359A (en) * 2017-07-13 2017-10-20 深圳市魔眼科技有限公司 Method, device, mobile terminal and the storage medium of adaptive zoom in 3D scannings
CN107395988A (en) * 2017-08-31 2017-11-24 华勤通讯技术有限公司 The control method and system of the camera of mobile terminal
CN107360357A (en) * 2017-09-05 2017-11-17 信利光电股份有限公司 A kind of camera module
WO2019071442A1 (en) * 2017-10-10 2019-04-18 深圳传音通讯有限公司 Zoom control method and device, and photographing terminal
CN107592467A (en) * 2017-10-20 2018-01-16 维沃移动通信有限公司 A kind of image pickup method and mobile terminal
CN108632536B (en) * 2018-07-31 2020-10-30 Oppo广东移动通信有限公司 Camera control method and device, terminal and storage medium
CN110445978B (en) 2019-06-24 2020-12-15 华为技术有限公司 Shooting method and equipment
CN110730310A (en) * 2019-10-18 2020-01-24 青岛海信移动通信技术股份有限公司 Camera exposure control method and terminal
CN112905088B (en) 2021-02-07 2022-11-04 北京蜂巢世纪科技有限公司 Video shooting control method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011211552A (en) * 2010-03-30 2011-10-20 Fujifilm Corp Imaging device and method, and program
CN102356630A (en) * 2009-03-19 2012-02-15 弗莱克斯电子有限责任公司 Dual sensor camera
CN104410785A (en) * 2014-11-17 2015-03-11 联想(北京)有限公司 An information processing method and electronic device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080030592A1 (en) * 2006-08-01 2008-02-07 Eastman Kodak Company Producing digital image with different resolution portions

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102356630A (en) * 2009-03-19 2012-02-15 弗莱克斯电子有限责任公司 Dual sensor camera
JP2011211552A (en) * 2010-03-30 2011-10-20 Fujifilm Corp Imaging device and method, and program
CN104410785A (en) * 2014-11-17 2015-03-11 联想(北京)有限公司 An information processing method and electronic device

Also Published As

Publication number Publication date
CN105991930A (en) 2016-10-05

Similar Documents

Publication Publication Date Title
CN105991930B (en) Zoom processing method, device and the mobile terminal of dual camera
US11375120B2 (en) Method and device for assisting capturing of an image
CN106131416B (en) Zoom processing method, device and the mobile terminal of dual camera
CN106572299B (en) Camera opening method and device
CN105245775B (en) camera imaging method, mobile terminal and device
WO2016029641A1 (en) Photograph acquisition method and apparatus
EP2567535B1 (en) Camera system and method for operating a camera system
CN108419016A (en) Image pickup method, device and terminal
KR20220082926A (en) Video shooting method and electronic device
CN105635567A (en) Shooting method and device
CN104933419B (en) The method, apparatus and red film for obtaining iris image identify equipment
CN105487680B (en) Method, apparatus and terminal for terminal screenshotss
CN106303192B (en) Terminal control method and terminal
KR20180081637A (en) Video categorization method and apparatus
CN113596316B (en) Photographing method and electronic equipment
CN104460185A (en) Automatic focusing method and device
CN104869314A (en) Photographing method and device
CN107820006A (en) Control the method and device of camera shooting
KR20180133897A (en) Method, apparatus, program and recording medium
CN104243829A (en) Self-shooting method and self-shooting device
CN109600549A (en) Photographic method, device, equipment and storage medium
CN104216525A (en) Method and device for mode control of camera application
CN105323491A (en) Image shooting method and device
CN108509863A (en) Information cuing method, device and electronic equipment
CN105957011B (en) Image processing method and device

Legal Events

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

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

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

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

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

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant