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
Application number
CN201610573049.5A
Other languages
Chinese (zh)
Other versions
CN105991930A (en
Inventor
韦怡
张弓
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
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

Links

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 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 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 (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106454121A (en) * 2016-11-11 2017-02-22 努比亚技术有限公司 Double-camera shooting method and device
CN106791377B (en) * 2016-11-29 2019-09-27 Oppo广东移动通信有限公司 Control method, control device and electronic 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
EP3550822A1 (en) * 2016-12-24 2019-10-09 Huawei Technologies Co., Ltd. Camera control method and terminal
CN106713716A (en) * 2017-01-23 2017-05-24 努比亚技术有限公司 Double cameras shooting control method and device
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

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
US20100309335A1 (en) Image capturing device having continuous image capture
EP2537330B1 (en) Photograph intention prediction including automatic photograph recording with autofocus and respective method
KR20160020396A (en) Method and apparatus for shooting parameter adjusting
WO2015066949A1 (en) Human-machine interaction system, method and device thereof
WO2016023340A1 (en) Camera switching method and device
WO2015184723A1 (en) Shooting control method and device, and terminal
EP3043293A1 (en) Method and device for realizing touch button and fingerprint identification, and terminal device
RU2647093C2 (en) Speech control method and apparatus for smart device, control device and smart device
CN104243819B (en) Photo acquisition methods and device
US8022982B2 (en) Camera system and method for operating a camera system
KR101712301B1 (en) Method and device for shooting a picture
CN105261346B (en) Method of adjustment, device and the terminal device of backlight illumination
KR20150007159A (en) Electronic device and control method thereof
KR101675247B1 (en) Shooting control method and device thereof, program and recording medium
RU2640741C2 (en) Method and device for switching display mode
JP2017535895A (en) Mobile terminal control method and mobile terminal
EP3041206A1 (en) Method and device for displaying notification information
WO2017020486A1 (en) Control method and device for adjusting photographing function, and apparatus
KR101834674B1 (en) Method and device for image photographing
US20170304735A1 (en) Method and Apparatus for Performing Live Broadcast on Game
CN105204742B (en) Control method, device and the terminal of electronic equipment
EP3249509A1 (en) Method and device for playing live videos
US10057424B2 (en) Method for voice calling, method for voice playing and devices thereof
CN105094577A (en) Method and apparatus for application switching
KR20100008936A (en) Portable terminal having dual camera and photographing method using the same

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
CB02 Change of applicant information
GR01 Patent grant